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
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VariablegetKind()bytegetType()booleanstatic VariablevoidsetGlobalVariableDecl(GlobalVariableDecl globalDecl) voidsetInterfaceBlock(InterfaceBlock interfaceBlock) voidsetVariableDecl(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
-