Class PatternBlock


  • public class PatternBlock
    extends java.lang.Object
    A mask/value pair viewed as two bitstreams
    • Constructor Detail

      • PatternBlock

        public PatternBlock​(int off,
                            int msk,
                            int val)
      • PatternBlock

        public PatternBlock​(boolean tf)
      • PatternBlock

        public PatternBlock​(java.util.ArrayList<?> list)
    • Method Detail

      • getMaskVector

        public int[] getMaskVector()
      • getValueVector

        public int[] getValueVector()
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • specializes

        public boolean specializes​(PatternBlock op2)
      • identical

        public boolean identical​(PatternBlock op2)
      • shift

        public void shift​(int sa)
      • getLength

        public int getLength()
      • getMask

        public int getMask​(int startbit,
                           int size)
      • getValue

        public int getValue​(int startbit,
                            int size)
      • alwaysTrue

        public boolean alwaysTrue()
      • alwaysFalse

        public boolean alwaysFalse()
      • isInstructionMatch

        public boolean isInstructionMatch​(ParserWalker walker)
      • isContextMatch

        public boolean isContextMatch​(ParserWalker walker)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getOffset

        public int getOffset()
      • getNonZeroLength

        public int getNonZeroLength()
      • getWholeBytes

        public byte[] getWholeBytes()
        Extract those portions of the pattern which constitute fully-specified bytes
        Returns:
        an array of bytes