public abstract class ContextualSubstRule extends Object implements Serializable
Constructor and Description |
---|
ContextualSubstRule() |
Modifier and Type | Method and Description |
---|---|
int |
getBacktrackContextLength() |
abstract int |
getContextLength() |
int |
getLookaheadContextLength() |
abstract SubstLookupRecord[] |
getSubstLookupRecords() |
boolean |
isGlyphMatchesBacktrack(int glyphId, int atIdx)
Checks if glyph line element matches element from backtrack sequence of the rule.
|
abstract 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.
|
public abstract int getContextLength()
public abstract SubstLookupRecord[] getSubstLookupRecords()
SubstLookupRecord
. Each record specifies a position in the context glyph sequence and a LookupListIndex to the substitution lookup that is applied at that position.
public abstract boolean isGlyphMatchesInput(int glyphId, int atIdx)
glyphId
-
atIdx
- index in the rule sequence. Shall be: 0 < atIdx < ContextualSubstRule.getContextLength().
public int getLookaheadContextLength()
public int getBacktrackContextLength()
public boolean isGlyphMatchesLookahead(int glyphId, int atIdx)
glyphId
-
atIdx
- index in rule sequence. Shall be: 0 <= atIdx < ContextualSubstRule.getLookaheadContextLength().
public boolean isGlyphMatchesBacktrack(int glyphId, int atIdx)
glyphId
-
atIdx
- index in rule sequence. Shall be: 0 <= atIdx < ContextualSubstRule.getBacktrackContextLength().
Copyright © 1998–2020 iText Group NV. All rights reserved.