Package jflex.core.unicode
Class CMapBlock
java.lang.Object
jflex.core.unicode.CMapBlock
Immutable second-level blocks for constructing the two-level character map table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int[]
array of BLOCK_SIZE; reference immutable; contents intended to be as wellstatic final int
How many bits the second-level char map tables translatestatic final int
Size of the second-level char map arraysprivate final int
pre-computed hash, since we will compare often -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BLOCK_BITS
public static final int BLOCK_BITSHow many bits the second-level char map tables translate- See Also:
-
BLOCK_SIZE
public static final int BLOCK_SIZESize of the second-level char map arrays- See Also:
-
block
public final int[] blockarray of BLOCK_SIZE; reference immutable; contents intended to be as well -
hash
private final int hashpre-computed hash, since we will compare often
-
-
Constructor Details
-
CMapBlock
public CMapBlock(int[] block) Constructs new CMapBlock and pre-computes its hash- Parameters:
block
- an int array of size @{link BLOCK_SIZE}.
-
-
Method Details