Package icyllis.arc3d.compiler.tree
Class Node
java.lang.Object
icyllis.arc3d.compiler.tree.Node
- Direct Known Subclasses:
Expression
,Modifiers
,Statement
,Symbol
,TopLevelElement
,TranslationUnit
Represents a node in the AST. The AST is a fully-resolved version of the program
(all types determined, everything validated), ready for code generation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionint
Position of this element within the module being compiled, for error reporting purposes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.final int
final int
abstract String
toString()
-
Field Details
-
mPosition
public int mPositionPosition of this element within the module being compiled, for error reporting purposes.- See Also:
-
-
Constructor Details
-
Node
protected Node(int position)
-
-
Method Details
-
getStartOffset
public final int getStartOffset() -
getEndOffset
public final int getEndOffset() -
accept
Visit this AST with a given visitor.- Returns:
- true to stop recursion and propagate true up the stack, false to continue
-
toString
-