|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.type.Reference
xtc.type.RelativeReference
xtc.type.IndexReference
public class IndexReference
Representation of an index reference.
| Field Summary |
|---|
| Fields inherited from class xtc.type.RelativeReference |
|---|
base |
| Fields inherited from class xtc.type.Reference |
|---|
type |
| Constructor Summary | |
|---|---|
IndexReference(Reference base,
java.math.BigInteger index)
Create a new index reference. |
|
| Method Summary | |
|---|---|
Reference |
add(java.math.BigInteger val)
Add the specified value to this reference. |
boolean |
equals(java.lang.Object o)
|
java.math.BigInteger |
getIndex()
Get this reference's index. |
java.math.BigInteger |
getLocation(C ops)
Get this reference's absolute memory location. |
int |
hashCode()
|
boolean |
hasIndex()
Determine whether this reference has an index. |
boolean |
hasLocation()
Determine whether this reference has an absolute memory location. |
boolean |
isNull()
Determine whether this reference is a null reference. |
Reference |
subtract(java.math.BigInteger val)
Subtract the specified value from this reference. |
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified appendable. |
| Methods inherited from class xtc.type.RelativeReference |
|---|
getBase, hasBase, isConstant |
| Methods inherited from class xtc.type.Reference |
|---|
add, difference, getField, getType, hasField, indirect, isCast, isDynamic, isIndirect, isPrefix, isStatic, isString, isVariable, subtract, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IndexReference(Reference base,
java.math.BigInteger index)
base - The base reference.index - The index.| Method Detail |
|---|
public boolean isNull()
ReferenceNullReference.NULL 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 hasIndex()
Reference
hasIndex in class Referencetrue if this reference has an index.IndexReferencepublic java.math.BigInteger getIndex()
Reference
getIndex in class Referencepublic 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 Reference add(java.math.BigInteger val)
Reference
add in class Referenceval - The value.
val.public Reference subtract(java.math.BigInteger val)
Reference
subtract in class Referenceval - The value.
val.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
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 | |||||||||