Class CombinePattern
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.pattern.Pattern
-
- ghidra.app.plugin.processors.sleigh.pattern.DisjointPattern
-
- ghidra.app.plugin.processors.sleigh.pattern.CombinePattern
-
public class CombinePattern extends DisjointPattern
A pattern that has both an instruction part and non-instruction part
-
-
Constructor Summary
Constructors Constructor Description CombinePattern()
CombinePattern(ContextPattern con, InstructionPattern in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
alwaysFalse()
boolean
alwaysInstructionTrue()
boolean
alwaysTrue()
Pattern
doAnd(Pattern b, int sa)
Pattern
doOr(Pattern b, int sa)
PatternBlock
getBlock(boolean cont)
boolean
isMatch(ParserWalker walker, SleighDebugLogger debug)
void
restoreXml(XmlPullParser parser)
void
shiftInstruction(int sa)
Pattern
simplifyClone()
java.lang.String
toString()
-
Methods inherited from class ghidra.app.plugin.processors.sleigh.pattern.DisjointPattern
getContextBlock, getDisjoint, getInstructionBlock, getLength, getMask, getValue, getWholeInstructionBytes, identical, numDisjoint, restoreDisjoint, specializes
-
-
-
-
Constructor Detail
-
CombinePattern
public CombinePattern()
-
CombinePattern
public CombinePattern(ContextPattern con, InstructionPattern in)
-
-
Method Detail
-
getBlock
public PatternBlock getBlock(boolean cont)
- Specified by:
getBlock
in classDisjointPattern
-
simplifyClone
public Pattern simplifyClone()
- Specified by:
simplifyClone
in classPattern
-
shiftInstruction
public void shiftInstruction(int sa)
- Specified by:
shiftInstruction
in classPattern
-
isMatch
public boolean isMatch(ParserWalker walker, SleighDebugLogger debug) throws MemoryAccessException
- Specified by:
isMatch
in classPattern
- Throws:
MemoryAccessException
-
alwaysTrue
public boolean alwaysTrue()
- Specified by:
alwaysTrue
in classPattern
-
alwaysFalse
public boolean alwaysFalse()
- Specified by:
alwaysFalse
in classPattern
-
alwaysInstructionTrue
public boolean alwaysInstructionTrue()
- Specified by:
alwaysInstructionTrue
in classPattern
-
restoreXml
public void restoreXml(XmlPullParser parser)
- Specified by:
restoreXml
in classPattern
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-