public class RuleSetDeclarationImpl extends Antlr3NRLBaseAst implements IRuleSetDeclaration
childIndex, parent, startIndex, stopIndex, tokenNEWLINE| Constructor and Description |
|---|
RuleSetDeclarationImpl(org.antlr.runtime.Token token) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(INRLAstVisitor visitor)
Accept a visitor to this node.
|
void |
addRule(IRuleDeclaration decl)
Add a rule to this set.
|
String |
dump(int indent)
Deprecated.
|
String |
getId()
Return the rule set identifier.
|
IModelReference |
getModelReference()
Helper method - return the raw precondition model reference, for use in
resolution.
|
IConstraint |
getPreconditionConstraint()
Return the precondition constraint, if there is one.
|
IModelElement |
getPreconditionContext()
Return the precondition context, if there is one.
|
List<IRuleDeclaration> |
getRules()
Return the rules in this rule set.
|
void |
setContext(IModelElement context)
Set the model element referenced in the precondition context.
|
doIndent, getColumn, getLine, getUserData, initialisePositionFromChild, setColumn, setLine, setUserDatadupNode, getCharPositionInLine, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetColumn, getLine, getUserData, setUserDatapublic RuleSetDeclarationImpl(org.antlr.runtime.Token token)
public void accept(INRLAstVisitor visitor)
INRLAstNodeaccept in interface INRLAstNodeaccept in class Antlr3NRLBaseAstvisitor - the visitor@Deprecated public String dump(int indent)
INRLAstNodedump in interface INRLAstNodedump in class Antlr3NRLBaseAstindent - the indentation count, 0 on first callpublic String getId()
IRuleSetDeclarationgetId in interface IRuleSetDeclarationpublic IConstraint getPreconditionConstraint()
IRuleSetDeclarationIRuleSetDeclaration.getPreconditionContext() will return a value
too.getPreconditionConstraint in interface IRuleSetDeclarationpublic IModelElement getPreconditionContext()
IRuleSetDeclarationIRuleSetDeclaration.getPreconditionConstraint() will too.getPreconditionContext in interface IRuleSetDeclarationpublic List<IRuleDeclaration> getRules()
IRuleSetDeclarationIRuleDeclaration objects. This can only be called once the AST
has been fully resolved.getRules in interface IRuleSetDeclarationpublic void addRule(IRuleDeclaration decl)
decl - the rulepublic IModelReference getModelReference()
public void setContext(IModelElement context)
context - the context to setCopyright © 2006-2013. All Rights Reserved.