public static class GlyphTable.GlyphSequenceRule extends GlyphTable.Rule
GlyphSequenceRule class implements a subclass of Rule
that supports matching on a specific glyph sequence.| Constructor and Description |
|---|
GlyphSequenceRule(GlyphTable.RuleLookup[] lookups,
int inputSequenceLength,
int[] glyphs)
Instantiate a GlyphSequenceRule.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getGlyphs()
Obtain glyphs.
|
int[] |
getGlyphs(int firstGlyph)
Obtain glyphs augmented by specified first glyph entry.
|
String |
toString() |
getInputSequenceLength, getLookups, resolveLookupReferencespublic GlyphSequenceRule(GlyphTable.RuleLookup[] lookups, int inputSequenceLength, int[] glyphs)
lookups - the rule's lookupsinputSequenceLength - number of glyphs constituting input sequence (to be consumed)glyphs - the rule's glyph sequence to match, starting with second glyph in sequencepublic int[] getGlyphs()
public int[] getGlyphs(int firstGlyph)
firstGlyph - to fill in first glyph entrypublic String toString()
toString in class GlyphTable.RuleCopyright © 2023 Apache Software Foundation. All rights reserved.