public abstract class AbstractPatternMatcherMethod extends PatternMatcher
PatternMatcher.OrderlessMatcher, PatternMatcher.StackMatcher
fPatternCondition, fPatternMap, fPriority
fLhsPatternExpr
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, writeExternal
getLHS
public AbstractPatternMatcherMethod(IExpr leftHandSide)
leftHandSide
- could contain pattern expressions for "pattern-matching"public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class PatternMatcher
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
equals
in class PatternMatcher
public int hashCode()
hashCode
in class PatternMatcher
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 IExpr getRHS()
IPatternMatcher
getRHS
in class IPatternMatcher
F.NIL
if no right-hand-side is defined for the
pattern matcherpublic int equivalent(IPatternMatcher obj)
equivalent
in class PatternMatcher