|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.type.Reference
xtc.type.RelativeReference
public abstract class RelativeReference
Representation of a reference value. A reference has a base, type, and an optional offset. The offset, in turn, either is an index or a field.
| Field Summary | |
|---|---|
protected Reference |
base
The base. |
| Fields inherited from class xtc.type.Reference |
|---|
type |
| Constructor Summary | |
|---|---|
RelativeReference(Type type,
Reference base)
Create a new relative reference. |
|
| Method Summary | |
|---|---|
Reference |
getBase()
Get this reference's base. |
boolean |
hasBase()
Determine whether this reference has a base. |
boolean |
isConstant()
Determine whether this reference represents a compile-time constant memory location. |
| Methods inherited from class xtc.type.Reference |
|---|
add, add, difference, getField, getIndex, getLocation, getType, hasField, hasIndex, hasLocation, indirect, isCast, isDynamic, isIndirect, isNull, isPrefix, isStatic, isString, isVariable, subtract, subtract, toString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Reference base
| Constructor Detail |
|---|
public RelativeReference(Type type,
Reference base)
type - The type.base - The base.| Method Detail |
|---|
public boolean isConstant()
Reference
isConstant in class Referencetrue if this reference represents a
compile-time memory location.public boolean hasBase()
Reference
hasBase in class Referencetrue if this reference has a base.RelativeReferencepublic Reference getBase()
Reference
getBase in class ReferenceRelativeReference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||