org.siebengeisslein.pclass
Class InternalPType

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.pclass.AbstractRefPType
          extended by org.siebengeisslein.pclass.InternalPType
All Implemented Interfaces:
Instrumented, Indexable, PType

public class InternalPType
extends AbstractRefPType
implements PType, Indexable


Field Summary
 
Fields inherited from class org.siebengeisslein.pclass.AbstractRefPType
CONSTRUCTOR_NAME
 
Constructor Summary
InternalPType(PClass clazz)
           
 
Method Summary
 void addChangeListener(IndexChangeListener listener)
           
 java.util.List<PField> getAllFields()
           
 java.util.List<PMethod> getAllMethods()
           
 java.lang.String getClassname()
           
 PClass getClazz()
           
 PMethod getConstructor(java.util.List<PType> params)
           
 java.lang.String getDescriptor()
           
 PField getField(java.lang.String name)
           
 java.util.List<AbstractRefPType> getImplementedInterfaces()
           
 PMethod getMethod(java.lang.String name, java.util.List<PType> parameters)
           
 java.lang.String getName()
           
 TypeSort getSort()
          This is needed for the indices of the type manager.
 AbstractRefPType getSuperClass()
           
 org.objectweb.asm.Type getType()
           
 TypeManager getTypeManager()
           
 boolean isAbstract()
           
 boolean isInterface()
           
 void removeChangeListener(IndexChangeListener listener)
           
 java.lang.String toString()
           
 
Methods inherited from class org.siebengeisslein.pclass.AbstractRefPType
distanceFrom, equals, getImplementedTypes, getInitialValue, hashCode, isAssignableFrom, visitConvertFromObject, visitConvertToObject
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.siebengeisslein.pclass.PType
distanceFrom, getImplementedTypes, getInitialValue, isAssignableFrom, visitConvertFromObject, visitConvertToObject
 

Constructor Detail

InternalPType

public InternalPType(PClass clazz)
Method Detail

getClazz

public PClass getClazz()

getType

public org.objectweb.asm.Type getType()
Specified by:
getType in interface PType
Overrides:
getType in class AbstractRefPType

getMethod

public PMethod getMethod(java.lang.String name,
                         java.util.List<PType> parameters)
Specified by:
getMethod in interface PType

getDescriptor

public java.lang.String getDescriptor()
Specified by:
getDescriptor in interface PType
Overrides:
getDescriptor in class AbstractRefPType

getField

public PField getField(java.lang.String name)
Specified by:
getField in interface PType
Returns:
field or null if this type does not have a field with name 'name'

getSuperClass

public AbstractRefPType getSuperClass()
Specified by:
getSuperClass in interface PType
Specified by:
getSuperClass in class AbstractRefPType
Returns:
superclass or null if this type does not have a superclass (object/basic/void types).

isInterface

public boolean isInterface()
Specified by:
isInterface in interface PType

getClassname

public java.lang.String getClassname()
Specified by:
getClassname in class AbstractRefPType

toString

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

getAllMethods

public java.util.List<PMethod> getAllMethods()
Specified by:
getAllMethods in interface PType

getAllFields

public java.util.List<PField> getAllFields()
Specified by:
getAllFields in interface PType

getConstructor

public PMethod getConstructor(java.util.List<PType> params)
Specified by:
getConstructor in interface PType

getName

public java.lang.String getName()
Specified by:
getName in interface PType

getImplementedInterfaces

public java.util.List<AbstractRefPType> getImplementedInterfaces()
Specified by:
getImplementedInterfaces in class AbstractRefPType

getTypeManager

public TypeManager getTypeManager()
Specified by:
getTypeManager in interface PType

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface PType

getSort

public TypeSort getSort()
Description copied from interface: PType
This is needed for the indices of the type manager.

Specified by:
getSort in interface PType

addChangeListener

public void addChangeListener(IndexChangeListener listener)
Specified by:
addChangeListener in interface Indexable

removeChangeListener

public void removeChangeListener(IndexChangeListener listener)
Specified by:
removeChangeListener in interface Indexable