Class SubTableLookup6Format3.SubstRuleFormat3

    • Constructor Summary

      Constructors 
      Constructor Description
      SubstRuleFormat3​(java.util.List<java.util.Set<java.lang.Integer>> backtrackCoverages, java.util.List<java.util.Set<java.lang.Integer>> inputCoverages, java.util.List<java.util.Set<java.lang.Integer>> lookaheadCoverages, SubstLookupRecord[] substLookupRecords)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBacktrackContextLength()
      Gets the length of the backtrack context glyph sequence defined by this rule
      int getContextLength()
      Gets the length of the context glyph sequence defined by this rule
      int getLookaheadContextLength()
      Gets the length of the lookahead context glyph sequence defined by this rule
      SubstLookupRecord[] getSubstLookupRecords()
      Retrieves the substitution lookup records.
      boolean isGlyphMatchesBacktrack​(int glyphId, int atIdx)
      Checks if glyph line element matches element from backtrack sequence of the rule.
      boolean isGlyphMatchesInput​(int glyphId, int atIdx)
      Checks if glyph line element matches element from input sequence of the rule.
      boolean isGlyphMatchesLookahead​(int glyphId, int atIdx)
      Checks if glyph line element matches element from lookahead sequence of the rule.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • backtrackCoverages

        java.util.List<java.util.Set<java.lang.Integer>> backtrackCoverages
      • inputCoverages

        java.util.List<java.util.Set<java.lang.Integer>> inputCoverages
      • lookaheadCoverages

        java.util.List<java.util.Set<java.lang.Integer>> lookaheadCoverages
    • Constructor Detail

      • SubstRuleFormat3

        public SubstRuleFormat3​(java.util.List<java.util.Set<java.lang.Integer>> backtrackCoverages,
                                java.util.List<java.util.Set<java.lang.Integer>> inputCoverages,
                                java.util.List<java.util.Set<java.lang.Integer>> lookaheadCoverages,
                                SubstLookupRecord[] substLookupRecords)
    • Method Detail

      • getContextLength

        public int getContextLength()
        Description copied from class: ContextualRule
        Gets the length of the context glyph sequence defined by this rule
        Specified by:
        getContextLength in class ContextualRule
        Returns:
        length of the context
      • getLookaheadContextLength

        public int getLookaheadContextLength()
        Description copied from class: ContextualRule
        Gets the length of the lookahead context glyph sequence defined by this rule
        Overrides:
        getLookaheadContextLength in class ContextualRule
        Returns:
        length of the lookahead context
      • getBacktrackContextLength

        public int getBacktrackContextLength()
        Description copied from class: ContextualRule
        Gets the length of the backtrack context glyph sequence defined by this rule
        Overrides:
        getBacktrackContextLength in class ContextualRule
        Returns:
        length of the backtrack context
      • isGlyphMatchesInput

        public boolean isGlyphMatchesInput​(int glyphId,
                                           int atIdx)
        Description copied from class: ContextualRule
        Checks if glyph line element matches element from input sequence of the rule.

        NOTE: rules do not contain the first element of the input sequence, the first element is defined by rule position in substitution table. Therefore atIdx shall not be 0.
        Specified by:
        isGlyphMatchesInput in class ContextualRule
        Parameters:
        glyphId - glyph code id
        atIdx - index in the rule sequence. Shall be: 0 < atIdx < ContextualRule.getContextLength()
        Returns:
        true if glyph matches element
      • isGlyphMatchesLookahead

        public boolean isGlyphMatchesLookahead​(int glyphId,
                                               int atIdx)
        Description copied from class: ContextualRule
        Checks if glyph line element matches element from lookahead sequence of the rule.
        Overrides:
        isGlyphMatchesLookahead in class ContextualRule
        Parameters:
        glyphId - glyph code id
        atIdx - index in rule sequence. Shall be: 0 <= atIdx < ContextualRule.getLookaheadContextLength()
        Returns:
        true if glyph matches element from lookahead sequence
      • isGlyphMatchesBacktrack

        public boolean isGlyphMatchesBacktrack​(int glyphId,
                                               int atIdx)
        Description copied from class: ContextualRule
        Checks if glyph line element matches element from backtrack sequence of the rule.
        Overrides:
        isGlyphMatchesBacktrack in class ContextualRule
        Parameters:
        glyphId - glyph code id
        atIdx - index in rule sequence. Shall be: 0 <= atIdx < ContextualRule.getBacktrackContextLength()
        Returns:
        true if glyph matches element from backtrack sequence