net.sf.cglib.reflect
public abstract class FastClass extends Object
Nested Class Summary | |
---|---|
static class | FastClass.Generator |
Method Summary | |
---|---|
static FastClass | create(Class type) |
static FastClass | create(ClassLoader loader, Class type) |
boolean | equals(Object o) |
FastConstructor | getConstructor(Constructor constructor) |
FastConstructor | getConstructor(Class[] parameterTypes) |
abstract int | getIndex(String name, Class[] parameterTypes)
Return the index of the matching method. |
abstract int | getIndex(Class[] parameterTypes)
Return the index of the matching constructor. |
abstract int | getIndex(Signature sig) |
Class | getJavaClass() |
abstract int | getMaxIndex()
Returns the maximum method index for this class. |
FastMethod | getMethod(Method method) |
FastMethod | getMethod(String name, Class[] parameterTypes) |
String | getName() |
int | hashCode() |
Object | invoke(String name, Class[] parameterTypes, Object obj, Object[] args) |
abstract Object | invoke(int index, Object obj, Object[] args)
Invoke the method with the specified index. |
Object | newInstance() |
Object | newInstance(Class[] parameterTypes, Object[] args) |
abstract Object | newInstance(int index, Object[] args)
Create a new instance using the specified constructor index and arguments. |
String | toString() |
Parameters: name the method name parameterTypes the parameter array
Returns: the index, or -1
if none is found.
See Also: (int, Object, Object[])
Parameters: parameterTypes the parameter array
Returns: the constructor index, or -1
if none is found.
See Also: (int, Object[])
Parameters: index the method index obj the object the underlying method is invoked from args the arguments used for the method call
Throws: java.lang.reflect.InvocationTargetException if the underlying method throws an exception
See Also: getIndex(name, Class[])
Parameters: index the constructor index args the arguments passed to the constructor
Throws: java.lang.reflect.InvocationTargetException if the constructor throws an exception
See Also: getIndex(Class[])