public class IndexReference extends RelativeReference
base| Constructor and Description |
|---|
IndexReference(Reference base,
java.math.BigInteger index)
Create a new index reference.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getBase, hasBase, isConstantpublic IndexReference(Reference base, java.math.BigInteger index)
base - The base reference.index - The index.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()
ReferencehasIndex in class Referencetrue if this reference has an index.IndexReferencepublic java.math.BigInteger getIndex()
Referencepublic boolean hasLocation()
ReferencehasLocation in class Referencetrue if this reference has an absolute
memory location.public java.math.BigInteger getLocation(C ops)
ReferencegetLocation in class Referenceops - The C operations.public Reference add(java.math.BigInteger val)
Referencepublic Reference subtract(java.math.BigInteger val)
Referencepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void write(java.lang.Appendable out)
throws java.io.IOException
ReferenceCopyright © 2014. All Rights Reserved.