Package jflex.core.unicode
Class CMapBlock
- java.lang.Object
-
- jflex.core.unicode.CMapBlock
-
public class CMapBlock extends java.lang.ObjectImmutable second-level blocks for constructing the two-level character map table.
-
-
Field Summary
Fields Modifier and Type Field Description int[]blockarray of BLOCK_SIZE; reference immutable; contents intended to be as wellstatic intBLOCK_BITSHow many bits the second-level char map tables translatestatic intBLOCK_SIZESize of the second-level char map arraysprivate inthashpre-computed hash, since we will compare often
-
Constructor Summary
Constructors Constructor Description CMapBlock(int[] block)Constructs new CMapBlock and pre-computes its hash
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()
-
-
-
Field Detail
-
BLOCK_BITS
public static final int BLOCK_BITS
How many bits the second-level char map tables translate- See Also:
- Constant Field Values
-
BLOCK_SIZE
public static final int BLOCK_SIZE
Size of the second-level char map arrays- See Also:
- Constant Field Values
-
block
public final int[] block
array of BLOCK_SIZE; reference immutable; contents intended to be as well
-
hash
private final int hash
pre-computed hash, since we will compare often
-
-