public class FastClass extends Object implements Serializable
| Modifier and Type | Method and Description | 
|---|---|
static FastClass | 
create(Class type)
Constructs a FastClass 
 | 
boolean | 
equals(Object o)  | 
int | 
getIndex(Class[] parameterTypes)
Locate the index of a constructor 
 | 
int | 
getIndex(String name,
        Class[] parameterTypes)
Locate the index of a method 
 | 
Class | 
getJavaClass()
Get the wrapped java class reference 
 | 
String | 
getName()
Get the wrapped class name 
 | 
int | 
hashCode()  | 
Object | 
invoke(int index,
      Object obj,
      Object[] args)
Access to invoke a method on the class that this fast class handles by its index 
 | 
Object | 
invoke(String name,
      Class[] parameterTypes,
      Object obj,
      Object[] args)
Access to invoke a method on the class that this fast class handles 
 | 
Object | 
newInstance()
Invoke the default constructor 
 | 
Object | 
newInstance(Class[] parameterTypes,
           Object[] args)
Invoke a parameterized constructor 
 | 
Object | 
newInstance(int index,
           Object[] args)
Invoke a constructor by its index 
 | 
String | 
toString()  | 
public static FastClass create(Class type)
type - The class to optimizepublic Object invoke(String name, Class[] parameterTypes, Object obj, Object[] args) throws InvocationTargetException
name - The name of the method to invoke,parameterTypes - The method parameter typesobj - The instance on which to invoke the methodargs - The parameter argumentsInvocationTargetException - Indicates a problem performing invocationpublic Object invoke(int index, Object obj, Object[] args) throws InvocationTargetException
index - The method indexobj - The instance on which to invoke the methodargs - The parameter argumentsInvocationTargetException - Indicates a problem performing invocationpublic Object newInstance() throws InvocationTargetException
InvocationTargetException - Indicates a problem performing invocationpublic Object newInstance(Class[] parameterTypes, Object[] args) throws InvocationTargetException
parameterTypes - The parameter typesargs - The parameter arguments to pass alongInvocationTargetException - Indicates a problem performing invocationpublic Object newInstance(int index, Object[] args) throws InvocationTargetException
index - The constructor indexargs - The parameter arguments to pass alongInvocationTargetException - Indicates a problem performing invocationpublic int getIndex(String name, Class[] parameterTypes)
name - The method nameparameterTypes - The method parameter typespublic int getIndex(Class[] parameterTypes)
parameterTypes - The constructor parameter typespublic String getName()
public Class getJavaClass()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.