public class FieldReference extends RelativeReference
base| Constructor and Description |
|---|
FieldReference(Reference base,
java.lang.String name)
Create a new field reference.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getField()
Get this reference's field.
|
java.math.BigInteger |
getLocation(C ops)
Get this reference's absolute memory location.
|
boolean |
hasField()
Determine whether this reference has a field.
|
int |
hashCode() |
boolean |
hasLocation()
Determine whether this reference has an absolute memory location.
|
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified
appendable.
|
getBase, hasBase, isConstantpublic FieldReference(Reference base, java.lang.String name)
base - The base reference.name - The member name.java.lang.ClassCastException - Signals that the base reference is
does not have a struct or union.java.lang.IllegalArgumentException - Signals that the base reference
does not have a struct/union with the named member.public boolean hasField()
ReferencehasField in class Referencetrue if this reference has a field.FieldReferencepublic java.lang.String getField()
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 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.