T
- The return type of the member to be invoked. class MemberClass<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Callable<T> |
call |
private java.lang.Class<?> |
clazz |
private java.lang.String |
name |
private java.lang.Class<?>[] |
parametersType |
private java.lang.Class<?> |
returnType |
private TypeModifier |
typeModifier |
Constructor and Description |
---|
MemberClass(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.Class<?> returnType,
java.lang.Class<?>[] parametersType,
TypeModifier typeModifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Callable<T> |
getCallable()
Returns an instance of the generated class.
|
private Callable<T> |
getInstance()
Gets the class to extend the Callable interface.
|
int |
hashCode() |
private final java.lang.String name
private final java.lang.Class<?> clazz
private final java.lang.Class<?> returnType
private final java.lang.Class<?>[] parametersType
private final TypeModifier typeModifier
public MemberClass(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?> returnType, java.lang.Class<?>[] parametersType, TypeModifier typeModifier)
clazz
- Class of the method to be invoked.name
- Name of the method to be invoked.returnType
- Return type of the method to be invoked.parametersType
- Type of the parameters of the method to be invoked.typeModifier
- Indicates if the member is instance or class (static).public final Callable<T> getCallable() throws java.lang.InstantiationException
java.lang.InstantiationException
- If there is an error instantiating the class.private Callable<T> getInstance() throws java.lang.InstantiationException
java.lang.InstantiationException
- If there is an error instantiating the class.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object