Package icyllis.arc3d.compiler.tree
Class Variable
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Symbol
icyllis.arc3d.compiler.tree.Variable
Represents a variable symbol, whether local, global, or a function parameter.
This represents the variable itself (the storage location), which is shared
between all VariableReferences which read or write that storage location.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Variable
getKind()
byte
getType()
boolean
static Variable
void
setGlobalVariableDecl
(GlobalVariableDecl globalDecl) void
setInterfaceBlock
(InterfaceBlock interfaceBlock) void
setVariableDecl
(VariableDecl decl) toString()
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Field Details
-
kLocal_Storage
public static final byte kLocal_Storage- See Also:
-
kGlobal_Storage
public static final byte kGlobal_Storage- See Also:
-
kParameter_Storage
public static final byte kParameter_Storage- See Also:
-
-
Constructor Details
-
Variable
-
-
Method Details
-
convert
-
make
-
getKind
-
getType
-
getModifiers
-
isBuiltin
public boolean isBuiltin() -
getStorage
public byte getStorage() -
initialValue
-
getVariableDecl
-
getGlobalVariableDecl
-
setVariableDecl
-
setGlobalVariableDecl
-
getInterfaceBlock
-
setInterfaceBlock
-
toString
-