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 |
---|
GlyphTable.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.
|
java.lang.String |
toString() |
getInputSequenceLength, getLookups, resolveLookupReferences
public GlyphTable.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 java.lang.String toString()
toString
in class GlyphTable.Rule
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.