Class BinaryExpressionMatcher<T extends BinaryExpression>
java.lang.Object
ghidra.app.plugin.assembler.sleigh.expr.match.AbstractExpressionMatcher<T>
ghidra.app.plugin.assembler.sleigh.expr.match.BinaryExpressionMatcher<T>
- Type Parameters:
T
- the type of expression matched
- All Implemented Interfaces:
ExpressionMatcher<T>
- Direct Known Subclasses:
BinaryExpressionMatcher.Commutative
public class BinaryExpressionMatcher<T extends BinaryExpression>
extends AbstractExpressionMatcher<T>
A matcher for a binary expression
If the required type matches, the matching descends to the left then right operands.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A matcher for binary expression allowing commutativityNested classes/interfaces inherited from interface ghidra.app.plugin.assembler.sleigh.expr.match.ExpressionMatcher
ExpressionMatcher.Context
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ExpressionMatcher
<?> protected final ExpressionMatcher
<?> Fields inherited from class ghidra.app.plugin.assembler.sleigh.expr.match.AbstractExpressionMatcher
ops
-
Constructor Summary
ConstructorDescriptionBinaryExpressionMatcher
(Class<T> cls, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher) BinaryExpressionMatcher
(Set<Class<? extends T>> ops, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
matchDetails
(T expression, Map<ExpressionMatcher<?>, PatternExpression> result) Methods inherited from class ghidra.app.plugin.assembler.sleigh.expr.match.AbstractExpressionMatcher
expressionsIdenticallyDefined, match, opMatches, recordResult
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.app.plugin.assembler.sleigh.expr.match.ExpressionMatcher
get, match
-
Field Details
-
leftMatcher
-
rightMatcher
-
-
Constructor Details
-
BinaryExpressionMatcher
public BinaryExpressionMatcher(Set<Class<? extends T>> ops, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher) -
BinaryExpressionMatcher
public BinaryExpressionMatcher(Class<T> cls, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher)
-
-
Method Details
-
matchDetails
- Specified by:
matchDetails
in classAbstractExpressionMatcher<T extends BinaryExpression>
-