Class OrPattern
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.pattern.Pattern
-
- ghidra.app.plugin.processors.sleigh.pattern.OrPattern
-
public class OrPattern extends Pattern
A pattern that can be matched by matching any of a list of subpatterns
-
-
Constructor Summary
Constructors Constructor Description OrPattern()
OrPattern(DisjointPattern a, DisjointPattern b)
OrPattern(java.util.ArrayList<?> list)
-
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)
DisjointPattern
getDisjoint(int i)
boolean
isMatch(ParserWalker walker, SleighDebugLogger debug)
int
numDisjoint()
void
restoreXml(XmlPullParser parser)
void
shiftInstruction(int sa)
Pattern
simplifyClone()
-
-
-
Constructor Detail
-
OrPattern
public OrPattern()
-
OrPattern
public OrPattern(DisjointPattern a, DisjointPattern b)
-
OrPattern
public OrPattern(java.util.ArrayList<?> list)
-
-
Method Detail
-
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
-
numDisjoint
public int numDisjoint()
- Specified by:
numDisjoint
in classPattern
-
getDisjoint
public DisjointPattern getDisjoint(int i)
- Specified by:
getDisjoint
in classPattern
-
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
-
-