T
- T is the type of the interface. class MemberBIClass<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Bootstrap |
bootstrap |
private java.lang.String |
bootstrapType |
private T |
call |
private java.lang.Class<?> |
clazz |
private java.lang.Class<T> |
interfaceCallable |
private java.lang.String |
nameInvoke |
private TypeModifier |
typeModifier |
Modifier | Constructor and Description |
---|---|
|
MemberBIClass(Bootstrap bootstrap,
java.lang.Class<T> interfaceCallable,
TypeModifier typeModifier,
java.lang.Class<?> clazz) |
private |
MemberBIClass(Bootstrap bootstrap,
java.lang.Class<T> interfaceCallable,
TypeModifier typeModifier,
java.lang.Class<?> clazz,
java.lang.String nameInvoke,
java.lang.String bootstrapType) |
|
MemberBIClass(java.lang.Class<T> interfaceCallable,
TypeModifier typeModifier,
java.lang.Class<?> clazz,
java.lang.String nameInvoke,
java.lang.String bootstrapType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
private T |
generateInstance()
Gets the class that extends the interface.
|
T |
getInstance()
Returns an instance of the generated class.
|
int |
hashCode() |
private final java.lang.Class<T> interfaceCallable
private final TypeModifier typeModifier
private final java.lang.Class<?> clazz
private final java.lang.String nameInvoke
private final java.lang.String bootstrapType
private final Bootstrap bootstrap
private T call
public MemberBIClass(java.lang.Class<T> interfaceCallable, TypeModifier typeModifier, java.lang.Class<?> clazz, java.lang.String nameInvoke, java.lang.String bootstrapType)
public MemberBIClass(Bootstrap bootstrap, java.lang.Class<T> interfaceCallable, TypeModifier typeModifier, java.lang.Class<?> clazz)
bootstrap
- Bootstrap Contains the necessary data to invoke the bootstrap method.interfaceCallable
- An interface with a single method with the same signature as the method to be invoked.typeModifier
- Indicates if the member is instance or class (static).clazz
- The class that contains the method to be invoked.private MemberBIClass(Bootstrap bootstrap, java.lang.Class<T> interfaceCallable, TypeModifier typeModifier, java.lang.Class<?> clazz, java.lang.String nameInvoke, java.lang.String bootstrapType)
public T getInstance() throws java.lang.InstantiationException
java.lang.InstantiationException
- If there is an error instantiating the class.private T generateInstance() 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