public class FieldAccessor extends Executable
| 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() |
String |
toString() |
equals, hashCodepublic FieldAccessor(Field field, AnnotatedType enclosingType)
public Object execute(Object target, Object[] args) throws IllegalAccessException
execute in class ExecutableIllegalAccessExceptionpublic AnnotatedType getReturnType()
getReturnType in class Executablepublic int getParameterCount()
getParameters().length.
Always 0 for @{FieldAccessor}getParameterCount in class Executablepublic AnnotatedType[] getAnnotatedParameterTypes()
getAnnotatedParameterTypes in class Executablepublic Parameter[] getParameters()
getParameters in class ExecutableCopyright © 2016–2017. All rights reserved.