public static class PosTableLookup8Format2.PosRuleFormat2 extends ContextualPositionRule
Constructor and Description |
---|
PosRuleFormat2(PosTableLookup8Format2 posTable, int[] backtrackClassIds, int[] inputClassIds, int[] lookAheadClassIds, PosLookupRecord[] posLookupRecords) |
Modifier and Type | Method and 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
|
PosLookupRecord[] |
getPosLookupRecords()
Retrieves the position lookup records.
|
PosTableLookup8Format2 |
getPosTable() |
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.
|
public PosRuleFormat2(PosTableLookup8Format2 posTable, int[] backtrackClassIds, int[] inputClassIds, int[] lookAheadClassIds, PosLookupRecord[] posLookupRecords)
public int getContextLength()
ContextualRule
getContextLength
in class ContextualRule
public int getLookaheadContextLength()
ContextualRule
getLookaheadContextLength
in class ContextualRule
public int getBacktrackContextLength()
ContextualRule
getBacktrackContextLength
in class ContextualRule
public PosLookupRecord[] getPosLookupRecords()
ContextualPositionRule
getPosLookupRecords
in class ContextualPositionRule
PosLookupRecord
.
public boolean isGlyphMatchesInput(int glyphId, int atIdx)
ContextualRule
isGlyphMatchesInput
in class ContextualRule
glyphId
- glyph code id
atIdx
- index in the rule sequence. Shall be: 0 < atIdx < ContextualRule.getContextLength()
true
if glyph matches element
public boolean isGlyphMatchesLookahead(int glyphId, int atIdx)
ContextualRule
isGlyphMatchesLookahead
in class ContextualRule
glyphId
- glyph code id
atIdx
- index in rule sequence. Shall be: 0 <= atIdx < ContextualRule.getLookaheadContextLength()
true
if glyph matches element from lookahead sequence
public boolean isGlyphMatchesBacktrack(int glyphId, int atIdx)
ContextualRule
isGlyphMatchesBacktrack
in class ContextualRule
glyphId
- glyph code id
atIdx
- index in rule sequence. Shall be: 0 <= atIdx < ContextualRule.getBacktrackContextLength()
true
if glyph matches element from backtrack sequence
public PosTableLookup8Format2 getPosTable()
Copyright © 1998–2022 iText Group NV. All rights reserved.