Class ClassReflectionIndex
java.lang.Object
org.jboss.as.server.deployment.reflect.ClassReflectionIndex
A short-lived index of all the declared fields and methods of a class.
The ClassReflectionIndex is only available during the deployment.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptiongetAllMethods(String name) Get a collection of methods declared on this object by method name.getAllMethods(String name, int paramCount) Get a collection of methods declared on this object by method name and parameter count.Constructor<?>getConstructor(Class<?>... paramTypes) Get a constructor declared on this class.Constructor<?>getConstructor(String... paramTypeNames) Get a constructor declared on this class.Get the full collection of constructors declared on this object.Get a field declared on this object.Get a collection of fields declared on this object.Class<?>Get the class indexed by this object.Get a method declared on this object.Get the canonical method declared on this object.Get a method declared on this object.getMethod(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) Get a method declared on this object.Get a collection of methods declared on this object.getMethods(String name, Class<?>... paramTypes) Get a collection of methods declared on this object.getMethods(String name, String... paramTypeNames) Get a collection of methods declared on this object.
-
Method Details
-
getIndexedClass
Get the class indexed by this object.- Returns:
- the class
-
getField
Get a field declared on this object.- Parameters:
name- the field name- Returns:
- the field, or
nullif no field of that name exists
-
getFields
Get a collection of fields declared on this object.- Returns:
- The (possibly empty) collection of all declared fields on this object
-
getMethod
Get a method declared on this object.- Parameters:
returnType- the method return typename- the name of the methodparamTypes- the parameter types of the method- Returns:
- the method, or
nullif no method of that description exists
-
getMethod
Get the canonical method declared on this object.- Parameters:
method- the method to look up- Returns:
- the canonical method object, or
nullif no matching method exists
-
getMethod
Get a method declared on this object.- Parameters:
returnType- the method return type namename- the name of the methodparamTypeNames- the parameter type names of the method- Returns:
- the method, or
nullif no method of that description exists
-
getMethod
Get a method declared on this object.- Parameters:
methodIdentifier- the method identifier- Returns:
- the method, or
nullif no method of that description exists
-
getMethods
Get a collection of methods declared on this object.- Parameters:
name- the name of the methodparamTypes- the parameter types of the method- Returns:
- the (possibly empty) collection of methods matching the description
-
getMethods
Get a collection of methods declared on this object.- Parameters:
name- the name of the methodparamTypeNames- the parameter type names of the method- Returns:
- the (possibly empty) collection of methods matching the description
-
getAllMethods
Get a collection of methods declared on this object by method name.- Parameters:
name- the name of the method- Returns:
- the (possibly empty) collection of methods with the given name
-
getAllMethods
Get a collection of methods declared on this object by method name and parameter count.- Parameters:
name- the name of the methodparamCount- the number of parameters- Returns:
- the (possibly empty) collection of methods with the given name and parameter count
-
getMethods
Get a collection of methods declared on this object.- Returns:
- the (possibly empty) collection of all declared methods
-
getConstructors
Get the full collection of constructors declared on this object.- Returns:
- the constructors
-
getConstructor
Get a constructor declared on this class.- Parameters:
paramTypes- the constructor argument types- Returns:
- the constructor, or
nullof no such constructor exists
-
getConstructor
Get a constructor declared on this class.- Parameters:
paramTypeNames- the constructor argument type names- Returns:
- the constructor, or
nullof no such constructor exists
-
getClassMethods
-