public class StringReference extends Reference
| Constructor and Description |
|---|
StringReference(java.lang.String literal,
Type type)
Create a new string reference.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
add, add, difference, getBase, getField, getIndex, getLocation, getType, hasBase, hasField, hasIndex, hasLocation, indirect, isCast, isDynamic, isIndirect, isNull, isPrefix, isStatic, isVariable, subtract, subtract, toStringpublic 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.public boolean isString()
ReferenceisString in class Referencetrue if this reference is a string
reference.StringReferencepublic java.lang.String getLiteral()
public boolean isConstant()
ReferenceisConstant 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.Objectpublic void write(java.lang.Appendable out)
throws java.io.IOException
ReferenceCopyright © 2014. All Rights Reserved.