harpoon.Interpret.Tree
Class InterfaceListPointer

java.lang.Object
  extended by harpoon.Util.Tuple
      extended by harpoon.Interpret.Tree.InterfaceListPointer
All Implemented Interfaces:
Serializable, Comparable

public class InterfaceListPointer
extends Tuple

The InterfaceListPointer is used to representing a pointer to a list of interfaces. The pointers of this type resides inside the blocks of class data allocated by the class loader.

Version:
$Id: InterfaceListPointer.java,v 1.2 2002/02/25 21:05:57 cananian Exp $
Author:
Duncan Bryce <duncan@lcs.mit.edu>
See Also:
Serialized Form

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)
          Adds the specified parameter to this ClazPointer's offset
 boolean equals(Object obj)
          Returns true if obj is an InterfaceListPointer which points to the same location as this InterfaceListPointer.
 Object getBase()
          Returns an InterfaceList representing the base of this InterfaceListPointer.
 long getOffset()
          Returns the offset of this ClazPointer.
 Object getValue()
          Dereferences this InterfaceListPointer and returns the value it points to.
 boolean isConst()
          Always returns false.
 boolean isDerived()
          Always returns false.
 int kind()
          Returns an integer enumeration of the kind of this Pointer.
 String toString()
          Returns a human-readable representation of this InterfaceListPointer.
 void updateValue(Object obj)
          Throws an error, as the program is not supposed to modify static class data
 
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

ARRAY_PTR

public static final int ARRAY_PTR
See Also:
Constant Field Values

CLAZ_PTR

public static final int CLAZ_PTR
See Also:
Constant Field Values

CONST_PTR

public static final int CONST_PTR
See Also:
Constant Field Values

FIELD_PTR

public static final int FIELD_PTR
See Also:
Constant Field Values

IFACE_PTR

public static final int IFACE_PTR
See Also:
Constant Field Values

STRING_PTR

public static final int STRING_PTR
See Also:
Constant Field Values

UNDEF_PTR

public static final int UNDEF_PTR
See Also:
Constant Field Values
Method Detail

add

public harpoon.Interpret.Tree.Pointer add(long offset)
Adds the specified parameter to this ClazPointer's offset


equals

public boolean equals(Object obj)
Returns true if obj is an InterfaceListPointer which points to the same location as this InterfaceListPointer.

Overrides:
equals in class Tuple

getBase

public Object getBase()
Returns an InterfaceList representing the base of this InterfaceListPointer.


getOffset

public long getOffset()
Returns the offset of this ClazPointer.


getValue

public Object getValue()
Dereferences this InterfaceListPointer and returns the value it points to.


isConst

public boolean isConst()
Always returns false.


isDerived

public boolean isDerived()
Always returns false.


kind

public int kind()
Returns an integer enumeration of the kind of this Pointer. The enumerated values are public fields of the Pointer class.


updateValue

public void updateValue(Object obj)
Throws an error, as the program is not supposed to modify static class data


toString

public String toString()
Returns a human-readable representation of this InterfaceListPointer.

Overrides:
toString in class Tuple