|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.type.Reference
xtc.type.NullReference
public class NullReference
Representation of a null reference. A null reference represents the null location in memory. Its type is void; it neither has a base nor an offset.
| Field Summary | |
|---|---|
static NullReference |
NULL
The canonical null reference. |
| Fields inherited from class xtc.type.Reference |
|---|
type |
| Method Summary | |
|---|---|
java.math.BigInteger |
getLocation(C ops)
Get this reference's absolute memory location. |
boolean |
hasLocation()
Determine whether this reference has an absolute memory location. |
boolean |
isConstant()
Determine whether this reference represents a compile-time constant memory location. |
boolean |
isNull()
Determine whether this reference is a null 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, getType, hasBase, hasField, hasIndex, indirect, isCast, isDynamic, isIndirect, isPrefix, isStatic, isString, isVariable, subtract, subtract, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final NullReference NULL
| Method Detail |
|---|
public boolean isNull()
ReferenceNULL may still
return true; notably, an index reference with a null
base and a zero offset still is null.
isNull in class Referencetrue if this reference is a null
reference.NullReferencepublic boolean hasLocation()
Reference
hasLocation in class Referencetrue if this reference has an absolute
memory location.public java.math.BigInteger getLocation(C ops)
Reference
getLocation in class Referenceops - The C operations.
public boolean isConstant()
Reference
isConstant in class Referencetrue if this reference represents a
compile-time memory location.
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 | |||||||||