?
- the type being indexedpublic final class ClassReflectionIndex extends Object
Modifier and Type | Method and Description |
---|---|
Collection<Method> |
getAllMethods(String name)
Get a collection of methods declared on this object by method name.
|
Collection<Method> |
getAllMethods(String name,
int paramCount)
Get a collection of methods declared on this object by method name and parameter count.
|
Set<Method> |
getClassMethods() |
Constructor<?> |
getConstructor(Class<?>... paramTypes)
Get a constructor declared on this class.
|
Constructor<?> |
getConstructor(String... paramTypeNames)
Get a constructor declared on this class.
|
Collection<Constructor<?>> |
getConstructors()
Get the full collection of constructors declared on this object.
|
Field |
getField(String name)
Get a field declared on this object.
|
Collection<Field> |
getFields()
Get a collection of fields declared on this object.
|
Class<?> |
getIndexedClass()
Get the class indexed by this object.
|
Method |
getMethod(Class<?> returnType,
String name,
Class<?>... paramTypes)
Get a method declared on this object.
|
Method |
getMethod(Method method)
Get the canonical method declared on this object.
|
Method |
getMethod(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
Get a method declared on this object.
|
Method |
getMethod(String returnType,
String name,
String... paramTypeNames)
Get a method declared on this object.
|
Collection<Method> |
getMethods()
Get a collection of methods declared on this object.
|
Collection<Method> |
getMethods(String name,
Class<?>... paramTypes)
Get a collection of methods declared on this object.
|
Collection<Method> |
getMethods(String name,
String... paramTypeNames)
Get a collection of methods declared on this object.
|
public Class<?> getIndexedClass()
public Field getField(String name)
name
- the field namenull
if no field of that name existspublic Collection<Field> getFields()
public Method getMethod(Class<?> returnType, String name, Class<?>... paramTypes)
returnType
- the method return typename
- the name of the methodparamTypes
- the parameter types of the methodnull
if no method of that description existspublic Method getMethod(Method method)
method
- the method to look upnull
if no matching method existspublic Method getMethod(String returnType, String name, String... paramTypeNames)
returnType
- the method return type namename
- the name of the methodparamTypeNames
- the parameter type names of the methodnull
if no method of that description existspublic Method getMethod(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
methodIdentifier
- the method identifiernull
if no method of that description existspublic Collection<Method> getMethods(String name, Class<?>... paramTypes)
name
- the name of the methodparamTypes
- the parameter types of the methodpublic Collection<Method> getMethods(String name, String... paramTypeNames)
name
- the name of the methodparamTypeNames
- the parameter type names of the methodpublic Collection<Method> getAllMethods(String name)
name
- the name of the methodpublic Collection<Method> getAllMethods(String name, int paramCount)
name
- the name of the methodparamCount
- the number of parameterspublic Collection<Method> getMethods()
public Collection<Constructor<?>> getConstructors()
public Constructor<?> getConstructor(Class<?>... paramTypes)
paramTypes
- the constructor argument typesnull
of no such constructor existspublic Constructor<?> getConstructor(String... paramTypeNames)
paramTypeNames
- the constructor argument type namesnull
of no such constructor existsCopyright © 2023 JBoss by Red Hat. All rights reserved.