Package icyllis.arc3d.compiler.tree
Class VariableReference
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Expression
icyllis.arc3d.compiler.tree.VariableReference
A reference to a variable, through which it can be read or written.
-
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 intReferenceKinds.static final intReferenceKinds.static final intReferenceKinds.static final intReferenceKinds. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(TreeVisitor visitor) Visit this AST with a given visitor.clone(int position) getKind()intstatic ExpressionvoidsetReferenceKind(int referenceKind) voidsetVariable(Variable variable) toString(int parentPrecedence) Methods inherited from class icyllis.arc3d.compiler.tree.Expression
clone, getCoercionCost, getConstantValue, getType, isBooleanLiteral, isConstructorCall, isFloatLiteral, isIncomplete, isIntLiteral, isLiteral, toStringMethods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Field Details
-
kRead_ReferenceKind
public static final int kRead_ReferenceKindReferenceKinds.- See Also:
-
kWrite_ReferenceKind
public static final int kWrite_ReferenceKindReferenceKinds.- See Also:
-
kReadWrite_ReferenceKind
public static final int kReadWrite_ReferenceKindReferenceKinds.- See Also:
-
kPointer_ReferenceKind
public static final int kPointer_ReferenceKindReferenceKinds.- See Also:
-
-
Method Details
-
make
-
getKind
- Specified by:
getKindin classExpression- See Also:
-
accept
Description copied from class:NodeVisit this AST with a given visitor. -
getVariable
-
setVariable
-
getReferenceKind
public int getReferenceKind() -
setReferenceKind
public void setReferenceKind(int referenceKind) -
clone
- Specified by:
clonein classExpression
-
toString
- Specified by:
toStringin classExpression
-