public class MatchRule extends ExtensibleNamedRule implements ModuleElement
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(java.lang.Object left,
java.lang.Object right,
IEclContext context,
boolean ofTypeOnly) |
java.util.Collection |
getAllOfLeftKind(IEclContext context) |
java.util.Collection |
getAllOfLeftType(IEclContext context) |
java.util.Collection |
getAllOfRightKind(IEclContext context) |
java.util.Collection |
getAllOfRightType(IEclContext context) |
java.util.List |
getChildren() |
AST |
getSuperRulesAst() |
boolean |
isLazy() |
Match |
match(java.lang.Object left,
java.lang.Object right,
IEclContext context,
boolean asSuperRule,
EolMap matchInfo,
boolean forcedMatch)
Matches left against right
|
void |
matchAll(IEclContext context,
boolean ofTypeOnly) |
void |
parse(AST ast) |
java.lang.String |
toString() |
calculateSuperRules, getAllSuperRules, getSuperRules, isAbstract, isGreedygetAst, getName, setAst, setNameequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAstpublic MatchRule(AST ast)
public AST getSuperRulesAst()
getSuperRulesAst in class ExtensibleNamedRulepublic void parse(AST ast)
parse in class ExtensibleNamedRulepublic boolean appliesTo(java.lang.Object left,
java.lang.Object right,
IEclContext context,
boolean ofTypeOnly)
throws EolRuntimeException
EolRuntimeExceptionpublic java.util.Collection getAllOfRightType(IEclContext context) throws EolRuntimeException
EolRuntimeExceptionpublic java.util.Collection getAllOfLeftType(IEclContext context) throws EolRuntimeException
EolRuntimeExceptionpublic java.util.Collection getAllOfRightKind(IEclContext context) throws EolRuntimeException
EolRuntimeExceptionpublic java.util.Collection getAllOfLeftKind(IEclContext context) throws EolRuntimeException
EolRuntimeExceptionpublic void matchAll(IEclContext context, boolean ofTypeOnly) throws EolRuntimeException
EolRuntimeExceptionpublic Match match(java.lang.Object left, java.lang.Object right, IEclContext context, boolean asSuperRule, EolMap matchInfo, boolean forcedMatch) throws EolRuntimeException
left - The left objectright - The right objectcontext - The context in which the EML program is runningasSuperRule - Shows if the rule is executed as a super-rule of another ruleEolRuntimeExceptionpublic boolean isLazy()
throws EolRuntimeException
isLazy in class ExtensibleNamedRuleEolRuntimeExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List getChildren()
getChildren in interface ModuleElementgetChildren in class NamedRule