public class PatternMatcher.OrderlessMatcher
extends java.lang.Object
IAST
with header attribute Orderless
.ISymbol.ORDERLESS
Constructor and Description |
---|
OrderlessMatcher(IAST lhsPatternAST,
IAST lhsEvalAST)
Match a pattern expression against an evaluation expression, there
the arguments are commutative (i.e. the head of the AST expression
has attribute
Orderless ) |
Modifier and Type | Method and Description |
---|---|
void |
filterResult(IAST result) |
boolean |
matchOrderlessAST(int lhsPosition,
PatternMatcher.StackMatcher stackMatcher) |
public OrderlessMatcher(IAST lhsPatternAST, IAST lhsEvalAST)
Orderless
)lhsPatternAST
- the pattern ASTlhsEvalAST
- the evaluation ASTpublic boolean matchOrderlessAST(int lhsPosition, PatternMatcher.StackMatcher stackMatcher)
lhsPosition
- the position in the LHS expression which should actually
be matched.stackMatcher
- TODOpublic void filterResult(IAST result)