Class Pattern
java.lang.Object
ghidra.app.plugin.processors.sleigh.pattern.Pattern
- Direct Known Subclasses:
DisjointPattern
,OrPattern
A pattern which either matches or doesnt match a particular
InstructionContext. In particular, the bits comprising the
current instruction in the executable, and possible other
context bits
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
abstract boolean
abstract boolean
abstract void
abstract Pattern
abstract Pattern
abstract DisjointPattern
getDisjoint
(int i) abstract boolean
isMatch
(ParserWalker walker, SleighDebugLogger debug) abstract int
abstract void
shiftInstruction
(int sa) abstract Pattern
-
Constructor Details
-
Pattern
public Pattern()
-
-
Method Details
-
simplifyClone
-
shiftInstruction
public abstract void shiftInstruction(int sa) -
doOr
-
doAnd
-
isMatch
public abstract boolean isMatch(ParserWalker walker, SleighDebugLogger debug) throws MemoryAccessException - Throws:
MemoryAccessException
-
numDisjoint
public abstract int numDisjoint() -
getDisjoint
-
alwaysTrue
public abstract boolean alwaysTrue() -
alwaysFalse
public abstract boolean alwaysFalse() -
alwaysInstructionTrue
public abstract boolean alwaysInstructionTrue() -
decode
- Throws:
DecoderException
-