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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionintPosition of this element within the module being compiled, for error reporting purposes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanaccept(@NonNull TreeVisitor visitor) Visit this AST with a given visitor.final intfinal intabstract @NonNull StringtoString()
-
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
-