| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static FastClass | |
| public static FastClass | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public FastConstructor | |
| public FastConstructor | |
| public abstract int | |
| public abstract int | |
| public abstract int | |
| public Class | |
| public abstract int | |
| public FastMethod | |
| public FastMethod | |
| public String | |
| protected static String | |
| public int | |
| public Object | |
| public abstract Object | |
| public Object | |
| public Object | |
| public abstract Object | newInstance(int
the constructor index index, Object[] the arguments passed to the constructor args)Create a new instance using the specified constructor index and arguments. |
| public String |
| type | back to summary |
|---|---|
| private Class<T> type | |
| FastClass | back to summary |
|---|---|
| protected FastClass() | |
| FastClass | back to summary |
|---|---|
| protected FastClass(Class<T> type) | |
| create | back to summary |
|---|---|
| public static FastClass create(Class<T> type) | |
| create | back to summary |
|---|---|
| public static FastClass create(ClassLoader loader, Class<T> type) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getConstructor | back to summary |
|---|---|
| public FastConstructor getConstructor(Constructor<T> constructor) | |
| getConstructor | back to summary |
|---|---|
| public FastConstructor getConstructor(Class<T>[] parameterTypes) | |
| getIndex | back to summary |
|---|---|
| public abstract int getIndex(String name, Class<T>[] parameterTypes) Return the index of the matching method. The index may be used later to invoke the method with less overhead. If more than one method matches (i.e. they differ by return type only), one is chosen arbitrarily.
| |
| getIndex | back to summary |
|---|---|
| public abstract int getIndex(Class<T>[] parameterTypes) Return the index of the matching constructor. The index may be used later to create a new instance with less overhead.
| |
| getIndex | back to summary |
|---|---|
| public abstract int getIndex(Signature sig) | |
| getJavaClass | back to summary |
|---|---|
| public Class | |
| getMaxIndex | back to summary |
|---|---|
| public abstract int getMaxIndex() Returns the maximum method index for this class. | |
| getMethod | back to summary |
|---|---|
| public FastMethod getMethod(Method method) | |
| getMethod | back to summary |
|---|---|
| public FastMethod getMethod(String name, Class<T>[] parameterTypes) | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getSignatureWithoutReturnType | back to summary |
|---|---|
| protected static String getSignatureWithoutReturnType(String name, Class<T>[] parameterTypes) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| invoke | back to summary |
|---|---|
| public Object invoke(String name, Class<T>[] parameterTypes, Object obj, Object[] args) throws InvocationTargetException | |
| invoke | back to summary |
|---|---|
| public abstract Object invoke(int index, Object obj, Object[] args) throws InvocationTargetException Invoke the method with the specified index.
| |
| newInstance | back to summary |
|---|---|
| public Object newInstance() throws InvocationTargetException | |
| newInstance | back to summary |
|---|---|
| public Object newInstance(Class<T>[] parameterTypes, Object[] args) throws InvocationTargetException | |
| newInstance | back to summary |
|---|---|
| public abstract Object newInstance(int index, Object[] args) throws InvocationTargetException Create a new instance using the specified constructor index and arguments.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final AbstractClassGenerator. | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FastClass | |
| protected Object | firstInstance(Class<T> type)
Implements abstract org. |
| public void | |
| protected ClassLoader | |
| protected ProtectionDomain | getProtectionDomain()
Overrides org. |
| protected Object | nextInstance(Object instance)
Implements abstract org. |
| public void |
| SOURCE | back to summary |
|---|---|
| private static final AbstractClassGenerator. | |
| type | back to summary |
|---|---|
| private Class<T> type | |
| Generator | back to summary |
|---|---|
| public Generator() | |
| create | back to summary |
|---|---|
| public FastClass create() | |
| firstInstance | back to summary |
|---|---|
| protected Object firstInstance(Class<T> type) Implements abstract org.
| |
| generateClass | back to summary |
|---|---|
| public void generateClass(ClassVisitor v) throws Exception Implements org.
| |
| getDefaultClassLoader | back to summary |
|---|---|
| protected ClassLoader getDefaultClassLoader() Implements abstract org.
| |
| getProtectionDomain | back to summary |
|---|---|
| protected ProtectionDomain getProtectionDomain() Overrides org. Doc from org. Returns the protection domain to use when defining the class.
Default implementation returns
| |
| nextInstance | back to summary |
|---|---|
| protected Object nextInstance(Object instance) Implements abstract org.
| |
| setType | back to summary |
|---|---|
| public void setType(Class<T> type) | |