Class GlyphTable.GlyphSequenceRule

    • Field Detail

      • glyphs

        private final int[] glyphs
    • Constructor Detail

      • GlyphSequenceRule

        public GlyphSequenceRule​(GlyphTable.RuleLookup[] lookups,
                                 int inputSequenceLength,
                                 int[] glyphs)
        Instantiate a GlyphSequenceRule.
        Parameters:
        lookups - the rule's lookups
        inputSequenceLength - number of glyphs constituting input sequence (to be consumed)
        glyphs - the rule's glyph sequence to match, starting with second glyph in sequence
    • Method Detail

      • getGlyphs

        public int[] getGlyphs()
        Obtain glyphs. N.B. that this array starts with the second glyph of the input sequence.
        Returns:
        the glyphs
      • getGlyphs

        public int[] getGlyphs​(int firstGlyph)
        Obtain glyphs augmented by specified first glyph entry.
        Parameters:
        firstGlyph - to fill in first glyph entry
        Returns:
        the glyphs augmented by first glyph