public class BytecodeGenericsHelper extends Object
Constructor and Description |
---|
BytecodeGenericsHelper() |
Modifier and Type | Method and Description |
---|---|
static TypeInfo[] |
createParameterTypes(javassist.bytecode.SignatureAttribute.MethodSignature sig,
org.jboss.reflect.plugins.bytecode.BytecodeClassInfo 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.MethodSignature |
getMethodSignature(javassist.CtBehavior behaviour)
Gets the MethodSignature for a method/constructor
|
public static TypeInfo[] createParameterTypes(javassist.bytecode.SignatureAttribute.MethodSignature sig, org.jboss.reflect.plugins.bytecode.BytecodeClassInfo 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 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.