harpoon.Interpret.Tree
Class InterfaceListPointer

java.lang.Object
  |
  +--harpoon.Util.Tuple
        |
        +--harpoon.Interpret.Tree.Pointer
              |
              +--harpoon.Interpret.Tree.InterfaceListPointer
All Implemented Interfaces:
Comparable, Serializable

public class InterfaceListPointer
extends harpoon.Interpret.Tree.Pointer

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

Specified by:
add in class harpoon.Interpret.Tree.Pointer

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.

Specified by:
getBase in class harpoon.Interpret.Tree.Pointer

getOffset

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

Specified by:
getOffset in class harpoon.Interpret.Tree.Pointer

getValue

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

Overrides:
getValue in class harpoon.Interpret.Tree.Pointer

isConst

public boolean isConst()
Always returns false.

Specified by:
isConst in class harpoon.Interpret.Tree.Pointer

isDerived

public boolean isDerived()
Always returns false.

Specified by:
isDerived in class harpoon.Interpret.Tree.Pointer

kind

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

Specified by:
kind in class harpoon.Interpret.Tree.Pointer

updateValue

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

Overrides:
updateValue in class harpoon.Interpret.Tree.Pointer

toString

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

Overrides:
toString in class Tuple