Class Pattern


  • public class Pattern
    extends TreeNode
    Pattern node - a sequence of bits used during instruction decoding.
    • Constructor Detail

      • Pattern

        public Pattern​(BitSequence bits)
        Constructs a pattern.
        Parameters:
        bits - the bit sequence
    • Method Detail

      • getBits

        public BitSequence getBits()
        Returns the bit sequence.
        Returns:
        the bit sequence
      • and

        public Pattern and​(Mask mask)
        Returns a pattern ANDed with the specified mask.
        Parameters:
        mask - the mask
        Returns:
        the resulting pattern
      • toString

        public java.lang.String toString()
        Returns the pattern as a string in binary notation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object