Class BinaryExpressionMatcher.Commutative<T extends BinaryExpression>
java.lang.Object
ghidra.app.plugin.assembler.sleigh.expr.match.AbstractExpressionMatcher<T>
ghidra.app.plugin.assembler.sleigh.expr.match.BinaryExpressionMatcher<T>
ghidra.app.plugin.assembler.sleigh.expr.match.BinaryExpressionMatcher.Commutative<T>
- Type Parameters:
T
- the type of expression matched
- All Implemented Interfaces:
ExpressionMatcher<T>
- Enclosing class:
BinaryExpressionMatcher<T extends BinaryExpression>
public static class BinaryExpressionMatcher.Commutative<T extends BinaryExpression>
extends BinaryExpressionMatcher<T>
A matcher for binary expression allowing commutativity
This behaves the same as BinaryExpressionMatcher
, but if the first attempt fails, the
operand match is re-attempted with the operands swapped.
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.app.plugin.assembler.sleigh.expr.match.BinaryExpressionMatcher
BinaryExpressionMatcher.Commutative<T extends BinaryExpression>
Nested classes/interfaces inherited from interface ghidra.app.plugin.assembler.sleigh.expr.match.ExpressionMatcher
ExpressionMatcher.Context
-
Field Summary
Fields inherited from class ghidra.app.plugin.assembler.sleigh.expr.match.BinaryExpressionMatcher
leftMatcher, rightMatcher
Fields inherited from class ghidra.app.plugin.assembler.sleigh.expr.match.AbstractExpressionMatcher
ops
-
Constructor Summary
ConstructorDescriptionCommutative
(Class<T> cls, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher) Commutative
(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
-
Constructor Details
-
Commutative
public Commutative(Set<Class<? extends T>> ops, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher) -
Commutative
public Commutative(Class<T> cls, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher)
-
-
Method Details
-
matchDetails
- Overrides:
matchDetails
in classBinaryExpressionMatcher<T extends BinaryExpression>
-