|
JBoss Reflection 2.2.1.SP1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.reflect.plugins.javassist.JavassistHelper
public class JavassistHelper
Utilities to figure out generic information
| Constructor Summary | |
|---|---|
JavassistHelper()
|
|
| Method Summary | |
|---|---|
static TypeInfo[] |
createParameterTypes(javassist.bytecode.SignatureAttribute.MethodSignature sig,
org.jboss.reflect.plugins.javassist.JavassistClassInfo typeInfo)
Creates the generic parameter types for a constructor or method |
static boolean |
determineHierarchy(Stack<ClassInfo> hierarchy,
ClassInfo current,
ClassInfo search)
Figures out the path between the passed in classes |
static javassist.bytecode.SignatureAttribute.ClassSignature |
getClassSignature(javassist.CtClass clazz)
Gets the ClassSignature for a class |
static javassist.bytecode.SignatureAttribute.ObjectType |
getFieldSignature(javassist.CtField field)
Gets the FieldSignature for a field |
static javassist.bytecode.SignatureAttribute.MethodSignature |
getMethodSignature(javassist.CtBehavior behaviour)
Gets the MethodSignature for a method/constructor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavassistHelper()
| Method Detail |
|---|
public static javassist.bytecode.SignatureAttribute.ClassSignature getClassSignature(javassist.CtClass clazz)
clazz - the CtClass
IllegalArgumentException - if clazz is null
public static TypeInfo[] createParameterTypes(javassist.bytecode.SignatureAttribute.MethodSignature sig,
org.jboss.reflect.plugins.javassist.JavassistClassInfo typeInfo)
sig - the method/constructor signaturetypeInfo - the javassist type info
public static javassist.bytecode.SignatureAttribute.MethodSignature getMethodSignature(javassist.CtBehavior behaviour)
behaviour - the method/constructor
IllegalArgumentException - if clazz is nullpublic static javassist.bytecode.SignatureAttribute.ObjectType getFieldSignature(javassist.CtField field)
field - the field
IllegalArgumentException - if clazz is null
public static boolean determineHierarchy(Stack<ClassInfo> hierarchy,
ClassInfo current,
ClassInfo search)
throws javassist.NotFoundException
hierarchy - receives the ClassInfos that make up the hierarchy. This parameter may be null, in which
case is does not receive the classescurrent - the sub classsearch - the parent class or interface we are searching for
IllegalArgumentException - if current or search is null
javassist.NotFoundException
|
JBoss Reflection 2.2.1.SP1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||