public abstract class VariableReference extends Reference
| Constructor and Description |
|---|
VariableReference(java.lang.String name,
Type type)
Create a new variable reference.
|
VariableReference(Type type)
Create a new anonymous variable reference.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get this static reference's name.
|
boolean |
hasName()
Determine whether this variable reference has a name.
|
boolean |
isVariable()
Determine whether this reference is a variable reference.
|
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified
appendable.
|
add, add, difference, getBase, getField, getIndex, getLocation, getType, hasBase, hasField, hasIndex, hasLocation, indirect, isCast, isConstant, isDynamic, isIndirect, isNull, isPrefix, isStatic, isString, subtract, subtract, toStringpublic VariableReference(Type type)
type - The declared type.public VariableReference(java.lang.String name,
Type type)
name - The declared name.type - The declared type.public boolean isVariable()
ReferenceisVariable in class Referencetrue if this reference is a variable
reference.VariableReferencepublic boolean hasName()
true if this variable reference has a name.public java.lang.String getName()
public void write(java.lang.Appendable out)
throws java.io.IOException
ReferenceCopyright © 2014. All Rights Reserved.