|
||||||||||
| 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.FieldReference
public class FieldReference
Representation of a field reference.
| Field Summary |
|---|
| Fields inherited from class xtc.type.RelativeReference |
|---|
base |
| Fields inherited from class xtc.type.Reference |
|---|
type |
| Constructor Summary | |
|---|---|
FieldReference(Reference base,
java.lang.String name)
Create a new field reference. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class xtc.type.RelativeReference |
|---|
getBase, hasBase, isConstant |
| Methods inherited from class xtc.type.Reference |
|---|
add, add, difference, getIndex, getType, hasIndex, indirect, isCast, isDynamic, isIndirect, isNull, isPrefix, isStatic, isString, isVariable, subtract, subtract, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public boolean hasField()
Reference
hasField in class Referencetrue if this reference has a field.FieldReferencepublic java.lang.String getField()
Reference
getField 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 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 | |||||||||