Package icyllis.arc3d.compiler.tree
Class VariableDecl
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Statement
icyllis.arc3d.compiler.tree.VariableDecl
Variable declaration.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(TreeVisitor visitor) Visit this AST with a given visitor.static voidcheckError(int pos, Modifiers modifiers, Type type, Type baseType, byte storage) static VariableDeclconvert(Context context, int pos, Modifiers modifiers, Type type, String name, byte storage, Expression init) static VariableDeclconvert(Context context, Variable variable, Expression init) getInit()getKind()static VariableDeclmake(Variable variable, Expression init) voidsetInit(Expression init) voidsetVariable(Variable variable) toString()Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Constructor Details
-
VariableDecl
-
-
Method Details
-
checkError
-
convert
@Nullable public static VariableDecl convert(@Nonnull Context context, int pos, @Nonnull Modifiers modifiers, @Nonnull Type type, @Nonnull String name, byte storage, @Nullable Expression init) -
convert
@Nullable public static VariableDecl convert(@Nonnull Context context, @Nonnull Variable variable, @Nullable Expression init) -
make
-
getVariable
-
setVariable
-
getInit
-
setInit
-
getKind
-
accept
Description copied from class:NodeVisit this AST with a given visitor. -
toString
-