|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.type.Reference
xtc.type.StringReference
public class StringReference
Representation of a reference to a constant string. A string reference neither has a base nor an offset.
| Field Summary |
|---|
| Fields inherited from class xtc.type.Reference |
|---|
type |
| Constructor Summary | |
|---|---|
StringReference(java.lang.String literal,
Type type)
Create a new string reference. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getLiteral()
Get this string reference's literal. |
int |
hashCode()
|
boolean |
isConstant()
Determine whether this reference represents a compile-time constant memory location. |
boolean |
isString()
Determine whether this reference is a string reference. |
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified appendable. |
| Methods inherited from class xtc.type.Reference |
|---|
add, add, difference, getBase, getField, getIndex, getLocation, getType, hasBase, hasField, hasIndex, hasLocation, indirect, isCast, isDynamic, isIndirect, isNull, isPrefix, isStatic, isVariable, subtract, subtract, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringReference(java.lang.String literal,
Type type)
literal - The string literal.type - The literal's declared type.
java.lang.IllegalArgumentException - Signals that the type is not a
string type.| Method Detail |
|---|
public boolean isString()
Reference
isString in class Referencetrue if this reference is a string
reference.StringReferencepublic java.lang.String getLiteral()
public boolean isConstant()
Reference
isConstant in class Referencetrue if this reference represents a
compile-time memory location.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 | |||||||||