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 byte
static final byte
static final byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Variable
convert
(@NonNull Context context, int pos, @NonNull Modifiers modifiers, @NonNull Type type, @NonNull String name, byte storage) int
@NonNull Type
@Nullable VariableDeclaration
@Nullable GlobalVariable
@Nullable InterfaceBlock
@NonNull Node.SymbolKind
getKind()
byte
@NonNull Type
getType()
@Nullable Expression
boolean
static @NonNull Variable
make
(int pos, @NonNull Modifiers modifiers, @NonNull Type type, @NonNull String name, byte storage, boolean builtin) void
void
setGlobalVariable
(GlobalVariable global) void
setInterfaceBlock
(InterfaceBlock interfaceBlock) @NonNull String
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
-
getBaseType
-
getArraySize
public int getArraySize() -
isBuiltin
public boolean isBuiltin() -
getStorage
public byte getStorage() -
initialValue
-
getDeclaration
-
getGlobalVariable
-
setDeclaration
-
setGlobalVariable
-
getInterfaceBlock
-
setInterfaceBlock
-
toString
-