public class RuleFileImpl extends Antlr3NRLBaseAst implements IRuleFile
childIndex, parent, startIndex, stopIndex, tokenNEWLINE| Constructor and Description |
|---|
RuleFileImpl() |
RuleFileImpl(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.
|
IDeclaration |
getDeclarationById(String id)
Return a declaration given its id.
|
List<IDeclaration> |
getDeclarations()
Return all declarations (rule or fragment) by traversing the second child
of the AST (after model) forward
|
List<IVariableDeclaration> |
getGlobalVariableDeclarations()
Get the list of global variable declarations.
|
IModelFileReference[] |
getModelFileReferences()
Return the model file references, as they were declared in this rule file.
|
ModelCollection |
getModels() |
IOperatorFileReference[] |
getOperatorFileReferences()
Return an array of operator file references - can be empty.
|
List<IOperator> |
getOperators() |
IRuleDeclaration |
getRuleById(String id)
Look up a rule declaration by ID.
|
List<IRuleSetDeclaration> |
getRuleSetDeclarations()
Return all rule set declarations by traversing the second child of the
AST (after model) forward
|
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 RuleFileImpl()
public RuleFileImpl(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 IModelFileReference[] getModelFileReferences()
IRuleFilegetModelFileReferences in interface IRuleFilepublic IOperatorFileReference[] getOperatorFileReferences()
IRuleFilegetOperatorFileReferences in interface IRuleFilepublic List<IDeclaration> getDeclarations()
getDeclarations in interface IRuleFilepublic List<IRuleSetDeclaration> getRuleSetDeclarations()
getRuleSetDeclarations in interface IRuleFilepublic IDeclaration getDeclarationById(String id)
id - the idpublic IRuleDeclaration getRuleById(String id)
IRuleFilegetRuleById in interface IRuleFileid - the rule idpublic List<IVariableDeclaration> getGlobalVariableDeclarations()
IRuleFileIVariableDeclaration objects with some special properties:
IVariableDeclaration.getExpression() is always an
ILiteralString, IDecimalNumber or IIntegerNumber,
but never a model reference.
IVariableDeclaration#getConstraint() is always null
getGlobalVariableDeclarations in interface IRuleFilepublic ModelCollection getModels()
Copyright © 2006-2013. All Rights Reserved.