|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.type.Reference
xtc.type.VariableReference
public abstract class VariableReference
Representation of a symbolic memory location. A variable reference has neither a base nor an offset.
| Field Summary |
|---|
| Fields inherited from class xtc.type.Reference |
|---|
type |
| Constructor Summary | |
|---|---|
VariableReference(java.lang.String name,
Type type)
Create a new variable reference. |
|
VariableReference(Type type)
Create a new anonymous variable reference. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class xtc.type.Reference |
|---|
add, add, difference, getBase, getField, getIndex, getLocation, getType, hasBase, hasField, hasIndex, hasLocation, indirect, isCast, isConstant, isDynamic, isIndirect, isNull, isPrefix, isStatic, isString, subtract, subtract, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VariableReference(Type type)
type - The declared type.
public VariableReference(java.lang.String name,
Type type)
name - The declared name.type - The declared type.| Method Detail |
|---|
public boolean isVariable()
Reference
isVariable 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
Reference
write in class Referenceout - The appendable.
java.io.IOException - Signals an I/O error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||