Class DisjointPattern
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.pattern.Pattern
-
- ghidra.app.plugin.processors.sleigh.pattern.DisjointPattern
-
- Direct Known Subclasses:
CombinePattern
,ContextPattern
,InstructionPattern
public abstract class DisjointPattern extends Pattern
A pattern with no ORs in it
-
-
Constructor Summary
Constructors Constructor Description DisjointPattern()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PatternBlock
getBlock(boolean context)
PatternBlock
getContextBlock()
DisjointPattern
getDisjoint(int i)
PatternBlock
getInstructionBlock()
int
getLength(boolean context)
int
getMask(int startbit, int size, boolean context)
int
getValue(int startbit, int size, boolean context)
byte[]
getWholeInstructionBytes()
boolean
identical(DisjointPattern op2)
int
numDisjoint()
static DisjointPattern
restoreDisjoint(XmlPullParser parser)
boolean
specializes(DisjointPattern op2)
-
Methods inherited from class ghidra.app.plugin.processors.sleigh.pattern.Pattern
alwaysFalse, alwaysInstructionTrue, alwaysTrue, doAnd, doOr, isMatch, restoreXml, shiftInstruction, simplifyClone
-
-
-
-
Method Detail
-
getBlock
public abstract PatternBlock getBlock(boolean context)
-
getInstructionBlock
public PatternBlock getInstructionBlock()
-
getContextBlock
public PatternBlock getContextBlock()
-
getWholeInstructionBytes
public byte[] getWholeInstructionBytes()
-
numDisjoint
public int numDisjoint()
- Specified by:
numDisjoint
in classPattern
-
getDisjoint
public DisjointPattern getDisjoint(int i)
- Specified by:
getDisjoint
in classPattern
-
getMask
public int getMask(int startbit, int size, boolean context)
-
getValue
public int getValue(int startbit, int size, boolean context)
-
getLength
public int getLength(boolean context)
-
specializes
public boolean specializes(DisjointPattern op2)
-
identical
public boolean identical(DisjointPattern op2)
-
restoreDisjoint
public static DisjointPattern restoreDisjoint(XmlPullParser parser)
-
-