|
||||||||||
| 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.CastReference
public class CastReference
Representation of a cast reference.
| Field Summary |
|---|
| Fields inherited from class xtc.type.RelativeReference |
|---|
base |
| Fields inherited from class xtc.type.Reference |
|---|
type |
| Constructor Summary | |
|---|---|
CastReference(Type type,
Reference base)
Create a new cast reference. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.math.BigInteger |
getLocation(C ops)
Get this reference's absolute memory location. |
int |
hashCode()
|
boolean |
hasLocation()
Determine whether this reference has an absolute memory location. |
boolean |
isCast()
Determine whether this reference is a cast reference. |
boolean |
isPrefix()
Determine whether this reference represents a prefix operator in C syntax. |
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, getField, getIndex, getType, hasField, hasIndex, indirect, isDynamic, isIndirect, isNull, isStatic, isString, isVariable, subtract, subtract, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CastReference(Type type,
Reference base)
base - The base reference.type - The cast-to type.| Method Detail |
|---|
public boolean isPrefix()
Reference
isPrefix in class Referencetrue if this reference represents a
prefix operator.public boolean isCast()
Reference
isCast in class Referencetrue if this reference is a cast
reference.public 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 | |||||||||