org.siebengeisslein.pclass
Interface PType

All Known Implementing Classes:
AbstractGlobalVarType, AbstractRefPType, ArrayPType, BasicPType, DelegatingType, DummyPType, ExternalPType, GlobalDataType, GuiDataType, InternalPType, NullType, PanelFieldType, PNamedEntryType, PNamedEntryType, PNamedListFieldType, UnknownPType, VoidPType

public interface PType


Method Summary
 int distanceFrom(PType type)
           
 java.util.List<PField> getAllFields()
           
 java.util.List<PMethod> getAllMethods()
           
 PMethod getConstructor(java.util.List<PType> params)
           
 java.lang.String getDescriptor()
           
 PField getField(java.lang.String name)
           
 java.util.Set<PType> getImplementedTypes()
           
 Expression getInitialValue(ExpressionContainer container)
           
 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.
 PType getSuperClass()
           
 org.objectweb.asm.Type getType()
           
 TypeManager getTypeManager()
           
 boolean isAbstract()
           
 boolean isAssignableFrom(PType type)
           
 boolean isInterface()
           
 void visitConvertFromObject(org.objectweb.asm.MethodVisitor mv)
           
 void visitConvertToObject(org.objectweb.asm.MethodVisitor mv)
           
 

Method Detail

getMethod

PMethod getMethod(java.lang.String name,
                  java.util.List<PType> params)

getConstructor

PMethod getConstructor(java.util.List<PType> params)

getAllMethods

java.util.List<PMethod> getAllMethods()

getType

org.objectweb.asm.Type getType()

getDescriptor

java.lang.String getDescriptor()

getField

PField getField(java.lang.String name)
Returns:
field or null if this type does not have a field with name 'name'

isAssignableFrom

boolean isAssignableFrom(PType type)

distanceFrom

int distanceFrom(PType type)

getSuperClass

PType getSuperClass()
Returns:
superclass or null if this type does not have a superclass (object/basic/void types).

isInterface

boolean isInterface()

visitConvertFromObject

void visitConvertFromObject(org.objectweb.asm.MethodVisitor mv)

visitConvertToObject

void visitConvertToObject(org.objectweb.asm.MethodVisitor mv)

getInitialValue

Expression getInitialValue(ExpressionContainer container)

getAllFields

java.util.List<PField> getAllFields()

getName

java.lang.String getName()

getTypeManager

TypeManager getTypeManager()

isAbstract

boolean isAbstract()

getSort

TypeSort getSort()
This is needed for the indices of the type manager.


getImplementedTypes

java.util.Set<PType> getImplementedTypes()