public class ClassReflectionIndexUtil extends Object
ClassReflectionIndex
hierarchy.
User: Jaikiran PaiConstructor and Description |
---|
ClassReflectionIndexUtil() |
Modifier and Type | Method and Description |
---|---|
static Collection<Method> |
findAllMethods(DeploymentReflectionIndex deploymentReflectionIndex,
ClassReflectionIndex classReflectionIndex,
String methodName,
int paramCount)
Finds and returns all methods corresponding to the passed method
name and method paramCount . |
static Collection<Method> |
findAllMethodsByName(DeploymentReflectionIndex deploymentReflectionIndex,
ClassReflectionIndex classReflectionIndex,
String methodName)
Finds and returns all methods corresponding to the passed method
name . |
static Method |
findMethod(DeploymentReflectionIndex deploymentReflectionIndex,
Class<?> clazz,
Method method)
Finds and returns a method corresponding to the passed
method , which may be declared in the super class
of the passed classReflectionIndex . |
static Method |
findMethod(DeploymentReflectionIndex deploymentReflectionIndex,
Class<?> clazz,
org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
Finds and returns a method corresponding to the passed
methodIdentifier . |
static Collection<Method> |
findMethods(DeploymentReflectionIndex deploymentReflectionIndex,
ClassReflectionIndex classReflectionIndex,
String methodName,
String... paramTypes)
Finds and returns methods corresponding to the passed method
name and method paramTypes . |
static Method |
findRequiredMethod(DeploymentReflectionIndex deploymentReflectionIndex,
Class<?> clazz,
Method method)
Finds and returns a method corresponding to the passed
method , which may be declared in the super class
of the passed classReflectionIndex . |
static Method |
findRequiredMethod(DeploymentReflectionIndex deploymentReflectionIndex,
Class<?> clazz,
org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
Finds and returns a method corresponding to the passed
methodIdentifier . |
public static Method findMethod(DeploymentReflectionIndex deploymentReflectionIndex, Class<?> clazz, org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
methodIdentifier
.
The passed classReflectionIndex
will be used to traverse the class hierarchy while finding the method.
Returns null if no such method is founddeploymentReflectionIndex
- The deployment reflection indexclazz
- The class reflection index which will be used to traverse the class hierarchy to find the methodmethodIdentifier
- The method identifier of the method being searched forpublic static Method findRequiredMethod(DeploymentReflectionIndex deploymentReflectionIndex, Class<?> clazz, org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) throws DeploymentUnitProcessingException
methodIdentifier
.
The passed classReflectionIndex
will be used to traverse the class hierarchy while finding the method.
Throws DeploymentUnitProcessingException
if no such method is found.deploymentReflectionIndex
- The deployment reflection indexclazz
- The class to searchmethodIdentifier
- The method identifier of the method being searched forDeploymentUnitProcessingException
- If no such method is foundpublic static Method findRequiredMethod(DeploymentReflectionIndex deploymentReflectionIndex, Class<?> clazz, Method method) throws DeploymentUnitProcessingException
method
, which may be declared in the super class
of the passed classReflectionIndex
.
Throws DeploymentUnitProcessingException
if no such method is found.deploymentReflectionIndex
- The deployment reflection indexclazz
- The classmethod
- The method being searched forDeploymentUnitProcessingException
- If no such method is foundpublic static Method findMethod(DeploymentReflectionIndex deploymentReflectionIndex, Class<?> clazz, Method method)
method
, which may be declared in the super class
of the passed classReflectionIndex
.
deploymentReflectionIndex
- The deployment reflection indexclazz
- The classmethod
- The method being searched forpublic static Collection<Method> findMethods(DeploymentReflectionIndex deploymentReflectionIndex, ClassReflectionIndex classReflectionIndex, String methodName, String... paramTypes)
name
and method paramTypes
.
The passed classReflectionIndex
will be used to traverse the class hierarchy while finding the method.
Returns empty collection if no such method is founddeploymentReflectionIndex
- The deployment reflection indexclassReflectionIndex
- The class reflection index which will be used to traverse the class hierarchy to find the methodmethodName
- The name of the methodparamTypes
- The param types accepted by the methodpublic static Collection<Method> findAllMethods(DeploymentReflectionIndex deploymentReflectionIndex, ClassReflectionIndex classReflectionIndex, String methodName, int paramCount)
name
and method paramCount
.
The passed classReflectionIndex
will be used to traverse the class hierarchy while finding the method.
Returns empty collection if no such method is founddeploymentReflectionIndex
- The deployment reflection indexclassReflectionIndex
- The class reflection index which will be used to traverse the class hierarchy to find the methodmethodName
- The name of the methodparamCount
- The number of params accepted by the methodpublic static Collection<Method> findAllMethodsByName(DeploymentReflectionIndex deploymentReflectionIndex, ClassReflectionIndex classReflectionIndex, String methodName)
name
.
The passed classReflectionIndex
will be used to traverse the class hierarchy while finding the method.
Returns empty collection if no such method is founddeploymentReflectionIndex
- The deployment reflection indexclassReflectionIndex
- The class reflection index which will be used to traverse the class hierarchy to find the methodmethodName
- The name of the methodCopyright © 2023 JBoss by Red Hat. All rights reserved.