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, isGreedy
getAst, getName, setAst, setName
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAst
public MatchRule(AST ast)
public AST getSuperRulesAst()
getSuperRulesAst
in class ExtensibleNamedRule
public void parse(AST ast)
parse
in class ExtensibleNamedRule
public boolean appliesTo(java.lang.Object left, java.lang.Object right, IEclContext context, boolean ofTypeOnly) throws EolRuntimeException
EolRuntimeException
public java.util.Collection getAllOfRightType(IEclContext context) throws EolRuntimeException
EolRuntimeException
public java.util.Collection getAllOfLeftType(IEclContext context) throws EolRuntimeException
EolRuntimeException
public java.util.Collection getAllOfRightKind(IEclContext context) throws EolRuntimeException
EolRuntimeException
public java.util.Collection getAllOfLeftKind(IEclContext context) throws EolRuntimeException
EolRuntimeException
public void matchAll(IEclContext context, boolean ofTypeOnly) throws EolRuntimeException
EolRuntimeException
public 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 ruleEolRuntimeException
public boolean isLazy() throws EolRuntimeException
isLazy
in class ExtensibleNamedRule
EolRuntimeException
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List getChildren()
getChildren
in interface ModuleElement
getChildren
in class NamedRule