Package org.eclipse.epsilon.common.parse
Class AST
java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.eclipse.epsilon.common.parse.AST
- All Implemented Interfaces:
org.antlr.runtime.tree.Tree
public class AST
extends org.antlr.runtime.tree.CommonTree
-
Field Summary
Modifier and TypeFieldDescriptionprotected AST
protected Integer
protected List<org.antlr.runtime.Token>
protected List<org.antlr.runtime.Token>
protected boolean
protected Integer
protected Integer
protected IModule
protected Region
protected URI
Fields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, token
Fields inherited from class org.antlr.runtime.tree.BaseTree
children
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build()
protected void
collectDescendants
(AST ast, List<AST> descendants, boolean addAst) Returns the basename of the URI of this AST, which is the last segment of its URI.getChild
(int i) int
List<org.antlr.runtime.Token>
List<org.antlr.runtime.Token>
getFile()
int
getLine()
int
getUri()
boolean
boolean
setAnnotationsAst
(AST annotations) setColumn
(int column) void
setCommentTokens
(List<org.antlr.runtime.Token> comments) void
setExtraTokens
(List<org.antlr.runtime.Token> extraTokens) setFirstChild
(AST child) void
setImaginary
(boolean imaginary) void
setLine
(int line) void
setNextSibling
(AST sibling) void
void
setToken
(org.antlr.runtime.Token token) void
protected String
toExtendedStringTree
(int indent) Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChildCount, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
Field Details
-
uri
-
line
-
column
-
length
-
region
-
annotations
-
imaginary
protected boolean imaginary -
extraTokens
-
commentTokens
-
descendants
-
module
-
properties
-
-
Constructor Details
-
AST
public AST() -
AST
public AST(org.antlr.runtime.tree.CommonTree commontree) -
AST
-
AST
public AST(org.antlr.runtime.Token token) -
AST
-
AST
-
-
Method Details
-
build
public void build() -
getModule
-
setModule
-
setUri
-
setAnnotationsAst
-
getAnnotationsAst
-
getProperties
-
getBasename
Returns the basename of the URI of this AST, which is the last segment of its URI.getFile()
returnsnull
for non-file:///
URIs, which is correct in its own regard, but may produce NPEs in our case. -
getFile
-
getUri
-
getChildren
- Overrides:
getChildren
in classorg.antlr.runtime.tree.BaseTree
-
getParent
- Specified by:
getParent
in interfaceorg.antlr.runtime.tree.Tree
- Overrides:
getParent
in classorg.antlr.runtime.tree.CommonTree
-
setLine
-
getLine
public int getLine()- Specified by:
getLine
in interfaceorg.antlr.runtime.tree.Tree
- Overrides:
getLine
in classorg.antlr.runtime.tree.CommonTree
-
setColumn
-
getColumn
public int getColumn() -
getNextSibling
-
setNextSibling
-
hasChildren
public boolean hasChildren() -
getChild
- Specified by:
getChild
in interfaceorg.antlr.runtime.tree.Tree
- Overrides:
getChild
in classorg.antlr.runtime.tree.BaseTree
-
getNumberOfChildren
public int getNumberOfChildren() -
getFirstChild
-
setFirstChild
-
getSecondChild
-
getThirdChild
-
getFourthChild
-
getLastChild
-
getRegion
-
setToken
public void setToken(org.antlr.runtime.Token token) -
getDescendants
-
collectDescendants
-
setRegion
-
setImaginary
public void setImaginary(boolean imaginary) -
isImaginary
public boolean isImaginary() -
getExtraTokens
-
setExtraTokens
-
getCommentTokens
-
setCommentTokens
-
toExtendedStringTreeItem
-
toExtendedStringTree
-
getLength
-
setLength
-
toExtendedStringTree
-