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
Nested ClassesModifier and TypeClassDescriptionstatic classA matcher for binary expression allowing commutativityNested classes/interfaces inherited from interface ghidra.app.plugin.assembler.sleigh.expr.match.ExpressionMatcher
ExpressionMatcher.Context -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExpressionMatcher<?> protected final ExpressionMatcher<?> Fields inherited from class ghidra.app.plugin.assembler.sleigh.expr.match.AbstractExpressionMatcher
ops -
Constructor Summary
ConstructorsConstructorDescriptionBinaryExpressionMatcher(Class<T> cls, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher) BinaryExpressionMatcher(Set<Class<? extends T>> ops, ExpressionMatcher<?> leftMatcher, ExpressionMatcher<?> rightMatcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanmatchDetails(T expression, Map<ExpressionMatcher<?>, PatternExpression> result) Methods inherited from class ghidra.app.plugin.assembler.sleigh.expr.match.AbstractExpressionMatcher
expressionsIdenticallyDefined, match, opMatches, recordResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
matchDetailsin classAbstractExpressionMatcher<T extends BinaryExpression>
-