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
Modifier and TypeFieldDescriptionstatic final int
ReferenceKinds.static final int
ReferenceKinds.static final int
ReferenceKinds.static final int
ReferenceKinds. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.clone
(int position) getKind()
int
static Expression
void
setReferenceKind
(int referenceKind) void
setVariable
(Variable variable) toString
(int parentPrecedence) Methods inherited from class icyllis.arc3d.compiler.tree.Expression
clone, getCoercionCost, getConstantValue, getType, isBooleanLiteral, isConstructorCall, isFloatLiteral, isIncomplete, isIntLiteral, isLiteral, toString
Methods 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:
getKind
in classExpression
- See Also:
-
accept
Description copied from class:Node
Visit this AST with a given visitor. -
getVariable
-
setVariable
-
getReferenceKind
public int getReferenceKind() -
setReferenceKind
public void setReferenceKind(int referenceKind) -
clone
- Specified by:
clone
in classExpression
-
toString
- Specified by:
toString
in classExpression
-