public class PatternMatcherAndInvoker extends PatternMatcher
PatternMatcher.OrderlessMatcher, PatternMatcher.StackMatcher
fPatternCondition, fPatternMap, fPriority
fLhsPatternExpr
Constructor and Description |
---|
PatternMatcherAndInvoker()
Void constructor for Externalizable.
|
PatternMatcherAndInvoker(IExpr leftHandSide,
IFunctionEvaluator instance,
java.lang.String methodName)
Create a pattern-matching rule which invokes the method name in the given
instance, if leftHandSide is matching.
|
PatternMatcherAndInvoker(java.lang.String leftHandSide,
IFunctionEvaluator instance,
java.lang.String methodName)
Create a pattern-matching rule which invokes the method name in the given
instance, if leftHandSide is matching.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
IExpr |
eval(IExpr leftHandSide)
Match the given left-hand-side and return an evaluated expression
|
int |
hashCode() |
checkCondition, checkRHSCondition, compareTo, equivalent, equivalent, evalAST, evalLeftHandSide, evalLeftHandSide, getCondition, getPatterns, getPatternValue0, getPriority, init, isRuleWithoutPatterns, logConditionFalse, matchAST, matchExpr, matchExpr, readExternal, setCondition, test, writeExternal
getLHS, getRHS
public PatternMatcherAndInvoker()
public PatternMatcherAndInvoker(IExpr leftHandSide, IFunctionEvaluator instance, java.lang.String methodName)
leftHandSide
- could contain pattern expressions for "pattern-matching"instance
- instance of an IFunctionEvaluator interfacemethod
- method to callpublic PatternMatcherAndInvoker(java.lang.String leftHandSide, IFunctionEvaluator instance, java.lang.String methodName)
leftHandSide
- instance
- methodName
- public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class PatternMatcher
java.lang.CloneNotSupportedException
public IExpr eval(IExpr leftHandSide)
eval
in class PatternMatcher
leftHandSide
- left-hand-side expressionF.NIL
if the match wasn't successful, the evaluated
expression otherwise.public boolean equals(java.lang.Object obj)
equals
in class PatternMatcher
public int hashCode()
hashCode
in class PatternMatcher