public abstract class AbstractPatternMatcherMethod extends PatternMatcher
PatternMatcher.OrderlessMatcher, PatternMatcher.StackMatcherfPatternCondition, fPatternMap, fPriorityfLhsPatternExpr| Constructor and Description |
|---|
AbstractPatternMatcherMethod(IExpr leftHandSide)
Define a pattern-matching rule.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
int |
equivalent(IPatternMatcher obj) |
IExpr |
eval(IExpr leftHandSide)
Match the given left-hand-side and return an evaluated expression
|
IExpr |
getRHS()
Get the "right-hand-side" of a pattern-matching rule.
|
int |
hashCode() |
checkCondition, checkRHSCondition, compareTo, equivalent, evalAST, evalLeftHandSide, evalLeftHandSide, getCondition, getPatterns, getPatternValue0, getPriority, init, isRuleWithoutPatterns, logConditionFalse, matchAST, matchExpr, matchExpr, readExternal, setCondition, test, writeExternalgetLHSpublic AbstractPatternMatcherMethod(IExpr leftHandSide)
leftHandSide - could contain pattern expressions for "pattern-matching"public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class PatternMatcherjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object obj)
equals in class PatternMatcherpublic int hashCode()
hashCode in class PatternMatcherpublic IExpr eval(IExpr leftHandSide)
eval in class PatternMatcherleftHandSide - left-hand-side expressionF.NIL if the match wasn't successful, the evaluated
expression otherwise.public IExpr getRHS()
IPatternMatchergetRHS in class IPatternMatcherF.NIL if no right-hand-side is defined for the
pattern matcherpublic int equivalent(IPatternMatcher obj)
equivalent in class PatternMatcher