Class GlyphTable.ClassSequenceRule

    • Constructor Detail

      • ClassSequenceRule

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

      • getClasses

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

        public int[] getClasses​(int firstClass)
        Obtain glyph classes augmented by specified first class entry.
        Parameters:
        firstClass - to fill in first class entry
        Returns:
        the classes augmented by first class