|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Util.Tuple
harpoon.Interpret.Tree.StringPointer
public class StringPointer
The StringPointer
class represents a pointer to an
string constant. This pointer can be dereferenced
with getValue()
.
Field Summary | |
---|---|
static int |
ARRAY_PTR
|
static int |
CLAZ_PTR
|
static int |
CONST_PTR
|
static int |
FIELD_PTR
|
static int |
IFACE_PTR
|
static int |
STRING_PTR
|
static int |
UNDEF_PTR
|
Method Summary | |
---|---|
harpoon.Interpret.Tree.Pointer |
add(long offset)
Throws an error, as StringPointer s are constant. |
boolean |
equals(Object obj)
Returns true if obj is a StringPointer
that points to the same location as this StringPointer . |
Object |
getBase()
Returns a Label representing the base of this
StringPointer |
long |
getOffset()
Returns the offset of this StringPointer . |
Object |
getValue()
Returns the value obtained by dereferencing this StringPointer . |
boolean |
isConst()
Always returns true. |
boolean |
isDerived()
Always returns false. |
int |
kind()
Returns an integer enumeration of the kind of this Pointer. |
String |
toString()
Returns a human-readable description of this Tuple . |
void |
updateValue(Object value)
Throws an error, as StringPointer s are constant. |
Methods inherited from class harpoon.Util.Tuple |
---|
asList, compareTo, hashCode, proj |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ARRAY_PTR
public static final int CLAZ_PTR
public static final int CONST_PTR
public static final int FIELD_PTR
public static final int IFACE_PTR
public static final int STRING_PTR
public static final int UNDEF_PTR
Method Detail |
---|
public harpoon.Interpret.Tree.Pointer add(long offset)
StringPointer
s are constant.
public boolean equals(Object obj)
obj
is a StringPointer
that points to the same location as this StringPointer
.
equals
in class Tuple
public Object getBase()
Label
representing the base of this
StringPointer
public long getOffset()
StringPointer
.
public Object getValue()
StringPointer
. This value is in non-native format.
public boolean isConst()
public boolean isDerived()
public int kind()
public void updateValue(Object value)
StringPointer
s are constant.
public String toString()
Tuple
Tuple
.
toString
in class Tuple
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |