TYPE - the target object type.public static class InvocationTarget.ClassInvocationTarget<TYPE> extends InvocationTarget<TYPE>
InvocationTarget.ClassInvocationTarget<TYPE>, InvocationTarget.InstanceInvocationTarget<TYPE>| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
getTarget()
Returns the target of the invocation.
|
Class<? extends TYPE> |
getTargetClass()
Returns the target class.
|
int |
hashCode() |
boolean |
isAssignableTo(Class<?> otherClass)
Checks if this invocation target is assignable to the specified class.
|
boolean |
isSameTypeOf(Class<?> type)
Checks if this invocation target is of the specified type.
|
classOfType, instance@Nullable public Object getTarget()
InvocationTargetgetTarget in class InvocationTarget<TYPE>public boolean isSameTypeOf(@NotNull
Class<?> type)
InvocationTargetisSameTypeOf in class InvocationTarget<TYPE>type - the type class.@NotNull public Class<? extends TYPE> getTargetClass()
InvocationTargetgetTargetClass in class InvocationTarget<TYPE>public boolean isAssignableTo(@NotNull
Class<?> otherClass)
InvocationTargetisAssignableTo in class InvocationTarget<TYPE>otherClass - the other class.