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 @NonNull Variableconvert(@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.SymbolKindgetKind()byte@NonNull TypegetType()@Nullable Expressionbooleanstatic @NonNull Variablemake(int pos, @NonNull Modifiers modifiers, @NonNull Type type, @NonNull String name, byte storage, boolean builtin) voidvoidsetGlobalVariable(GlobalVariable global) voidsetInterfaceBlock(InterfaceBlock interfaceBlock) @NonNull StringtoString()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
-