public abstract class Executable<T extends AnnotatedElement & Member> extends Object
| Constructor and Description |
|---|
Executable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that)
Two
Executables are considered equal either if their wrapped fields/methods are equal
or if one wraps a field and the other its corresponding getter/setter. |
abstract Object |
execute(Object target,
Object[] args) |
abstract AnnotatedType[] |
getAnnotatedParameterTypes() |
T |
getDelegate() |
abstract int |
getParameterCount()
Returns the number of formal parameters this executable takes.
|
abstract Parameter[] |
getParameters() |
abstract AnnotatedType |
getReturnType() |
int |
hashCode() |
String |
toString() |
public abstract Object execute(Object target, Object[] args) throws InvocationTargetException, IllegalAccessException
public abstract AnnotatedType getReturnType()
public abstract int getParameterCount()
getParameters().length.public abstract AnnotatedType[] getAnnotatedParameterTypes()
public abstract Parameter[] getParameters()
public T getDelegate()
public boolean equals(Object that)
Executables are considered equal either if their wrapped fields/methods are equal
or if one wraps a field and the other its corresponding getter/setter.
Copyright © 2016–2018. All rights reserved.