|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.AbstractService
recoder.service.DefaultProgramModelInfo
recoder.service.DefaultByteCodeInfo
public class DefaultByteCodeInfo
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class recoder.service.DefaultProgramModelInfo |
|---|
DefaultProgramModelInfo.ResolvedTypeArgument |
| Field Summary |
|---|
| Fields inherited from class recoder.AbstractService |
|---|
serviceConfiguration |
| Fields inherited from interface recoder.TuningParameters |
|---|
INITIAL_CROSS_REFERENCER_ELEMENT2REFERENCE_HASH_SET_SIZE, INITIAL_SOURCE_INFO_NAME2PRIMITIVE_HASH_SET_SIZE, INITIAL_SOURCE_INFO_REFERENCE2ELEMENT_HASH_SET_SIZE |
| Constructor Summary | |
|---|---|
DefaultByteCodeInfo(ServiceConfiguration config)
|
|
| Method Summary | |
|---|---|
Type |
getAnnotationType(AnnotationUseInfo au)
Returns the (annotation) type of the given annotation use. |
ClassFile |
getClassFile(ClassType ct)
Returns the bytecode counterpart of the given classtype. |
ClassTypeContainer |
getClassTypeContainer(ClassType ct)
Returns the class type container for the given class type. |
ConstructorInfo |
getConstructorInfo(Constructor c)
Returns the bytecode counterpart of the given constructor. |
java.util.List<? extends Constructor> |
getConstructors(ClassType ct)
Returns the constructors locally defined within the given class type. |
ClassType |
getContainingClassType(Member m)
Returns the logical parent class of the given member. |
java.util.List<ClassType> |
getExceptions(Method m)
Returns the exceptions of the given method or constructor. |
FieldInfo |
getFieldInfo(Field f)
Returns the bytecode counterpart of the given field. |
java.util.List<? extends Field> |
getFields(ClassType ct)
Returns the fields locally defined within the given class type. |
MethodInfo |
getMethodInfo(Method m)
Returns the bytecode counterpart of the given method. |
java.util.List<Method> |
getMethods(ClassType ct)
Returns the methods locally defined within the given class type. |
Package |
getPackage(ProgramModelElement pme)
Returns the package of the given program model element. |
Type |
getReturnType(Method m)
Returns the return type of the given method. |
java.util.List<Type> |
getSignature(Method m)
Returns the signature of the given method or constructor. |
java.util.List<ClassType> |
getSupertypes(ClassType ct)
Returns the list of locally declared supertypes of the given class type. |
Type |
getType(ByteCodeElement bce)
|
Type |
getType(ProgramModelElement pme)
Returns the type of the given program model element. |
java.util.List<? extends ClassType> |
getTypes(ClassTypeContainer ctc)
Returns the class types locally defined within the given container. |
void |
register(ClassFile cf)
Registers a new class file for the service. |
| Methods inherited from class recoder.AbstractService |
|---|
getServiceConfiguration, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface recoder.Service |
|---|
getServiceConfiguration, initialize |
| Constructor Detail |
|---|
public DefaultByteCodeInfo(ServiceConfiguration config)
config - the configuration this services becomes part of.| Method Detail |
|---|
public final ClassFile getClassFile(ClassType ct)
ByteCodeInfo
null, if the given type is not a class file.
getClassFile in interface ByteCodeInfoct - a class type.public final MethodInfo getMethodInfo(Method m)
ByteCodeInfonull
, if the given method is not a method info.
getMethodInfo in interface ByteCodeInfom - a method.public final ConstructorInfo getConstructorInfo(Constructor c)
ByteCodeInfo
null, if the given constructor is not a constructor info.
getConstructorInfo in interface ByteCodeInfoc - a constructor.public final FieldInfo getFieldInfo(Field f)
ByteCodeInfonull
, if the given field is not a field info.
getFieldInfo in interface ByteCodeInfof - a field.public Type getType(ByteCodeElement bce)
public Type getType(ProgramModelElement pme)
ProgramModelInfo
getType in interface ProgramModelInfopme - the program model element to analyze.
public Package getPackage(ProgramModelElement pme)
ProgramModelInfo
getPackage in interface ProgramModelInfopme - a program model element.
null).public java.util.List<? extends ClassType> getTypes(ClassTypeContainer ctc)
ProgramModelInfo
getTypes in interface ProgramModelInfoctc - a class type container.
public ClassTypeContainer getClassTypeContainer(ClassType ct)
ProgramModelInfo
getClassTypeContainer in interface ProgramModelInfoct - a class type.
public java.util.List<ClassType> getSupertypes(ClassType ct)
ProgramModelInfo
getSupertypes in interface ProgramModelInfoct - a class type.
public java.util.List<? extends Field> getFields(ClassType ct)
ProgramModelInfo
getFields in interface ProgramModelInfoct - a class type.
public java.util.List<Method> getMethods(ClassType ct)
ProgramModelInfo
getMethods in interface ProgramModelInfoct - a class type.
public java.util.List<? extends Constructor> getConstructors(ClassType ct)
ProgramModelInfo
getConstructors in interface ProgramModelInfoct - a class type.
public ClassType getContainingClassType(Member m)
ProgramModelInfo
getContainingClassType in interface ProgramModelInfom - a member.
public java.util.List<Type> getSignature(Method m)
ProgramModelInfo
getSignature in interface ProgramModelInfom - a method (or constructor).
public java.util.List<ClassType> getExceptions(Method m)
ProgramModelInfo
getExceptions in interface ProgramModelInfom - a method (or constructor).
public Type getReturnType(Method m)
ProgramModelInfo
getReturnType in interface ProgramModelInfom - a method.
public void register(ClassFile cf)
ByteCodeInfo
register in interface ByteCodeInfocf - the new class file.public Type getAnnotationType(AnnotationUseInfo au)
ByteCodeInfo
getAnnotationType in interface ByteCodeInfoau - an annotation use
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||