Package ghidra.pcodeCPort.slghpattern
Class PatternBlock
- java.lang.Object
-
- ghidra.pcodeCPort.slghpattern.PatternBlock
-
public class PatternBlock extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PatternBlock(boolean tf)
PatternBlock(int off, int msk, int val)
PatternBlock(VectorSTL<PatternBlock> list)
PatternBlock(PatternBlock a, PatternBlock b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
alwaysFalse()
boolean
alwaysTrue()
PatternBlock
clone()
PatternBlock
commonSubPattern(PatternBlock b)
void
dispose()
int
getLength()
int
getMask(int startbit, int size)
int
getValue(int startbit, int size)
boolean
identical(PatternBlock op2)
PatternBlock
intersect(PatternBlock b)
boolean
isContextMatch(ParserWalker pos, int off)
boolean
isInstructionMatch(ParserWalker pos, int off)
void
restoreXml(org.jdom.Element el)
void
saveXml(java.io.PrintStream s)
void
shift(int sa)
boolean
specializes(PatternBlock op2)
java.lang.String
toString()
-
-
-
Constructor Detail
-
PatternBlock
public PatternBlock(int off, int msk, int val)
-
PatternBlock
public PatternBlock(boolean tf)
-
PatternBlock
public PatternBlock(PatternBlock a, PatternBlock b)
-
PatternBlock
public PatternBlock(VectorSTL<PatternBlock> list)
-
-
Method Detail
-
shift
public void shift(int sa)
-
getLength
public int getLength()
-
alwaysTrue
public boolean alwaysTrue()
-
alwaysFalse
public boolean alwaysFalse()
-
dispose
public void dispose()
-
clone
public PatternBlock clone()
- Overrides:
clone
in classjava.lang.Object
-
commonSubPattern
public PatternBlock commonSubPattern(PatternBlock b)
-
intersect
public PatternBlock intersect(PatternBlock b)
-
specializes
public boolean specializes(PatternBlock op2)
-
identical
public boolean identical(PatternBlock op2)
-
getMask
public int getMask(int startbit, int size)
-
getValue
public int getValue(int startbit, int size)
-
isInstructionMatch
public boolean isInstructionMatch(ParserWalker pos, int off)
-
isContextMatch
public boolean isContextMatch(ParserWalker pos, int off)
-
saveXml
public void saveXml(java.io.PrintStream s)
-
restoreXml
public void restoreXml(org.jdom.Element el)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-