Class CMapBlock

java.lang.Object
jflex.core.unicode.CMapBlock

public class CMapBlock extends Object
Immutable second-level blocks for constructing the two-level character map table.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int[]
    array of BLOCK_SIZE; reference immutable; contents intended to be as well
    static final int
    How many bits the second-level char map tables translate
    static final int
    Size of the second-level char map arrays
    private final int
    pre-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

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BLOCK_BITS

      public static final int BLOCK_BITS
      How many bits the second-level char map tables translate
      See Also:
    • BLOCK_SIZE

      public static final int BLOCK_SIZE
      Size of the second-level char map arrays
      See Also:
    • 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
  • 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