public class FieldAccessor extends Executable<Field>
| Constructor and Description |
|---|
FieldAccessor(Field field,
AnnotatedType enclosingType) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Object target,
Object[] args) |
AnnotatedType[] |
getAnnotatedParameterTypes() |
int |
getParameterCount()
Returns the number of formal parameters this executable takes.
|
Parameter[] |
getParameters() |
AnnotatedType |
getReturnType() |
equals, getDelegate, hashCode, toStringpublic FieldAccessor(Field field, AnnotatedType enclosingType)
public Object execute(Object target, Object[] args) throws IllegalAccessException
execute in class Executable<Field>IllegalAccessExceptionpublic AnnotatedType getReturnType()
getReturnType in class Executable<Field>public int getParameterCount()
getParameters().length.
Always 0 for @{FieldAccessor}getParameterCount in class Executable<Field>public AnnotatedType[] getAnnotatedParameterTypes()
getAnnotatedParameterTypes in class Executable<Field>public Parameter[] getParameters()
getParameters in class Executable<Field>Copyright © 2016–2018. All rights reserved.