public class JavassistHelper extends Object
Constructor and Description |
---|
JavassistHelper() |
Modifier and Type | Method and Description |
---|---|
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
|
public static javassist.bytecode.SignatureAttribute.ClassSignature getClassSignature(javassist.CtClass clazz)
clazz
- the CtClassIllegalArgumentException
- if clazz is nullpublic static TypeInfo[] createParameterTypes(javassist.bytecode.SignatureAttribute.MethodSignature sig, org.jboss.reflect.plugins.javassist.JavassistClassInfo typeInfo)
sig
- the method/constructor signaturetypeInfo
- the javassist type infopublic static javassist.bytecode.SignatureAttribute.MethodSignature getMethodSignature(javassist.CtBehavior behaviour)
behaviour
- the method/constructorIllegalArgumentException
- if clazz is nullpublic static javassist.bytecode.SignatureAttribute.ObjectType getFieldSignature(javassist.CtField field)
field
- the fieldIllegalArgumentException
- if clazz is nullpublic 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 forIllegalArgumentException
- if current or search is nulljavassist.NotFoundException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.