com.ibm.wala.types
Class ClassLoaderReference

java.lang.Object
  extended by com.ibm.wala.types.ClassLoaderReference

public class ClassLoaderReference
extends java.lang.Object

Defines the meta-information that identifies a class loader. This is effectively a "name" for a class loader.


Field Summary
static ClassLoaderReference Application
          Canonical reference to application class loader
static ClassLoaderReference Extension
          Canonical reference to extension class loader
static Atom Java
          Canonical name for the Java language
static ClassLoaderReference Primordial
          Canonical reference to primordial class loader
 
Constructor Summary
ClassLoaderReference(Atom name, Atom language)
          Default constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Note: names for class loader references must be unique.
 Atom getLanguage()
           
 Atom getName()
           
 ClassLoaderReference getParent()
           
 int hashCode()
           
 void setParent(ClassLoaderReference parent)
          TODO: I hate that this exists.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Java

public static final Atom Java
Canonical name for the Java language


Primordial

public static final ClassLoaderReference Primordial
Canonical reference to primordial class loader


Extension

public static final ClassLoaderReference Extension
Canonical reference to extension class loader


Application

public static final ClassLoaderReference Application
Canonical reference to application class loader

Constructor Detail

ClassLoaderReference

public ClassLoaderReference(Atom name,
                            Atom language)
Default constructor

Parameters:
name - String (actually Atom) name identifying the loader
Method Detail

getName

public Atom getName()
Returns:
the name of this class loader

getLanguage

public Atom getLanguage()
Returns:
the name of the language this class loader belongs to

getParent

public ClassLoaderReference getParent()
Returns:
the parent of this loader in the loader hierarchy, or null if none

setParent

public void setParent(ClassLoaderReference parent)
TODO: I hate that this exists.

Parameters:
parent - the parent of this loader in the loader hierarchy,

equals

public boolean equals(java.lang.Object obj)
Note: names for class loader references must be unique.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object