public class ReflectParameterTypes
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ReflectParameterTypes.ReflectParameterException |
| Constructor and Description |
|---|
ReflectParameterTypes() |
| Modifier and Type | Method and Description |
|---|---|
ReflectParameterTypes |
addResolveType(java.lang.Object argument)
Locates the
Class object of an unknown argument. |
ReflectParameterTypes |
addType(java.lang.Class<?> clazz)
Add a
Class object representing a parameter type |
ReflectParameterTypes |
addType(java.lang.String clazzName) |
ReflectParameterTypes |
addType(java.lang.String clazzName,
java.lang.ClassLoader loader)
Add a parameter type based on it's full class name.
|
java.lang.Integer |
size()
Returns the current size of the parameter type array
|
java.lang.Class<?>[] |
toArray()
Returns the current parameter type array
|
java.lang.String |
toString()
Returns the current parameter type array as a
String representation |
public ReflectParameterTypes addType(java.lang.String clazzName)
addType(String, ClassLoader)public ReflectParameterTypes addType(java.lang.String clazzName, java.lang.ClassLoader loader) throws ReflectParameterTypes.ReflectParameterException
clazzName - The name of the class typeloader - ClassLoader to use for the search or NULL to use ReflectClass defaultReflectParameterTypes.ReflectParameterException - This is thrown if ReflectClass was unable to resolve the class namepublic ReflectParameterTypes addType(java.lang.Class<?> clazz)
Class object representing a parameter typeclazz - The Class object that should be added to the parameter listpublic ReflectParameterTypes addResolveType(java.lang.Object argument)
Class object of an unknown argument.
Use this if you have an unknown argument/variable which should be converted into
a Class representing a parameter typeargument - An unknown argument/variablepublic java.lang.String toString()
String representationtoString in class java.lang.Objectpublic java.lang.Class<?>[] toArray()
public java.lang.Integer size()