org.siebengeisslein.pclass
Class ExternalPType

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

public class ExternalPType
extends AbstractRefPType
implements PType


Field Summary
 
Fields inherited from class org.siebengeisslein.pclass.AbstractRefPType
CONSTRUCTOR_NAME
 
Constructor Summary
ExternalPType(TypeManager typeManager, java.lang.Class clazz)
           
ExternalPType(TypeManager manager, java.lang.String classname)
           
 
Method Summary
 java.util.List<PMethod> getAllConstructors()
           
 java.util.List<PField> getAllFields()
           
 java.util.List<PMethod> getAllMethods()
           
 java.lang.Class getAsClass()
           
 java.lang.String getClassname()
           
 PMethod getConstructor(java.util.List<PType> params)
           
 PField getField(java.lang.String name)
           
 java.util.List<AbstractRefPType> getImplementedInterfaces()
           
 PMethod getMethod(java.lang.String name, java.util.List<PType> params)
           
 java.lang.String getName()
           
 TypeSort getSort()
          This is needed for the indices of the type manager.
 AbstractRefPType getSuperClass()
           
 TypeManager getTypeManager()
           
 boolean isAbstract()
           
 boolean isInterface()
           
 java.lang.String toString()
           
 
Methods inherited from class org.siebengeisslein.pclass.AbstractRefPType
distanceFrom, equals, getDescriptor, getImplementedTypes, getInitialValue, getType, 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, getDescriptor, getImplementedTypes, getInitialValue, getType, isAssignableFrom, visitConvertFromObject, visitConvertToObject
 

Constructor Detail

ExternalPType

public ExternalPType(TypeManager manager,
                     java.lang.String classname)

ExternalPType

public ExternalPType(TypeManager typeManager,
                     java.lang.Class clazz)
Method Detail

getClassname

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

getMethod

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

getConstructor

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

getAllMethods

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

getAllConstructors

public java.util.List<PMethod> getAllConstructors()

getAsClass

public java.lang.Class getAsClass()

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

toString

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

getAllFields

public java.util.List<PField> getAllFields()
Specified by:
getAllFields 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