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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.static void
checkError
(int pos, Modifiers modifiers, Type type, Type baseType, byte storage) static VariableDecl
convert
(Context context, int pos, Modifiers modifiers, Type type, String name, byte storage, Expression init) static VariableDecl
convert
(Context context, Variable variable, Expression init) getInit()
getKind()
static VariableDecl
make
(Variable variable, Expression init) void
setInit
(Expression init) void
setVariable
(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:Node
Visit this AST with a given visitor. -
toString
-