public class ActionRuleDeclarationImpl extends SingleContextDeclarationImpl implements IActionRuleDeclaration
childIndex, parent, startIndex, stopIndex, tokenNEWLINE| Constructor and Description |
|---|
ActionRuleDeclarationImpl(org.antlr.runtime.Token token) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(INRLAstVisitor visitor)
Accept a visitor to this node.
|
String |
dump(int indent)
Deprecated.
|
IAction |
getAction()
Get the rule action.
|
String |
getId()
Return the rule id.
|
IRuleSetDeclaration |
getRuleSet()
Return the rule set that the rule is contained in, if any.
|
boolean |
hasContext()
Indicate whether this action rule has a context, or only uses actions
that do not require a context.
|
void |
setRuleSet(IRuleSetDeclaration ruleSet)
Set the rule set that this rule is contained in.
|
areAdditionalParametersFullyResolved, getAdditionalParameterNames, getAdditionalParameterType, getAdditionalParameterTypeReference, getContext, getModelReference, initialiseAdditionalParametersFromAst, isOldContextFormat, setAdditionalParameterType, setContextdoIndent, 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, waitgetAdditionalParameterNames, getAdditionalParameterType, getContextgetColumn, getLine, getUserData, setUserDatapublic ActionRuleDeclarationImpl(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 IAction getAction()
IActionRuleDeclarationICompoundAction or a IConditionalAction - see the grammar
for more details.getAction in interface IActionRuleDeclarationpublic String getId()
IDeclarationgetId in interface IDeclarationgetId in class DeclarationImplpublic IRuleSetDeclaration getRuleSet()
IRuleDeclarationThis can only be called once the AST has been fully resolved.
getRuleSet in interface IRuleDeclarationpublic boolean hasContext()
IActionRuleDeclarationThis will be true for most rules. For some, for example those that only use "create" or "select", a context is unnecessary and this will return false.
Calling ISingleContextDeclaration.getContext()
on such a rule will return a reserved model object with no attriutes.
hasContext in interface IActionRuleDeclarationpublic void setRuleSet(IRuleSetDeclaration ruleSet)
IRuleDeclarationsetRuleSet in interface IRuleDeclarationruleSet - the rule setCopyright © 2006-2013. All Rights Reserved.