Class Pattern
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.pattern.Pattern
-
- Direct Known Subclasses:
DisjointPattern
,OrPattern
public abstract class Pattern extends java.lang.Object
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
Constructors Constructor Description Pattern()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
alwaysFalse()
abstract boolean
alwaysInstructionTrue()
abstract boolean
alwaysTrue()
abstract Pattern
doAnd(Pattern b, int sa)
abstract Pattern
doOr(Pattern b, int sa)
abstract DisjointPattern
getDisjoint(int i)
abstract boolean
isMatch(ParserWalker walker, SleighDebugLogger debug)
abstract int
numDisjoint()
abstract void
restoreXml(XmlPullParser parser)
abstract void
shiftInstruction(int sa)
abstract Pattern
simplifyClone()
-
-
-
Method Detail
-
simplifyClone
public abstract Pattern simplifyClone()
-
shiftInstruction
public abstract void shiftInstruction(int sa)
-
isMatch
public abstract boolean isMatch(ParserWalker walker, SleighDebugLogger debug) throws MemoryAccessException
- Throws:
MemoryAccessException
-
numDisjoint
public abstract int numDisjoint()
-
getDisjoint
public abstract DisjointPattern getDisjoint(int i)
-
alwaysTrue
public abstract boolean alwaysTrue()
-
alwaysFalse
public abstract boolean alwaysFalse()
-
alwaysInstructionTrue
public abstract boolean alwaysInstructionTrue()
-
restoreXml
public abstract void restoreXml(XmlPullParser parser)
-
-