Class FieldAccessor
- java.lang.Object
-
- io.leangen.graphql.metadata.execution.Executable<Field>
-
- io.leangen.graphql.metadata.execution.FieldAccessor
-
public class FieldAccessor extends Executable<Field>
Created by bojan.tomic on 7/20/16.
-
-
Constructor Summary
Constructors Constructor Description FieldAccessor(Field field, AnnotatedType enclosingType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(Object target, Object[] args)AnnotatedType[]getAnnotatedParameterTypes()intgetParameterCount()Returns the number of formal parameters this executable takes.Parameter[]getParameters()AnnotatedTypegetReturnType()-
Methods inherited from class io.leangen.graphql.metadata.execution.Executable
equals, getDelegate, hashCode, toString
-
-
-
-
Constructor Detail
-
FieldAccessor
public FieldAccessor(Field field, AnnotatedType enclosingType)
-
-
Method Detail
-
execute
public Object execute(Object target, Object[] args) throws IllegalAccessException
- Specified by:
executein classExecutable<Field>- Throws:
IllegalAccessException
-
getReturnType
public AnnotatedType getReturnType()
- Specified by:
getReturnTypein classExecutable<Field>
-
getParameterCount
public int getParameterCount()
Returns the number of formal parameters this executable takes. May differ fromgetParameters().length. Always 0 for @{FieldAccessor}- Specified by:
getParameterCountin classExecutable<Field>- Returns:
- The number of formal parameter this executable takes
-
getAnnotatedParameterTypes
public AnnotatedType[] getAnnotatedParameterTypes()
- Specified by:
getAnnotatedParameterTypesin classExecutable<Field>
-
getParameters
public Parameter[] getParameters()
- Specified by:
getParametersin classExecutable<Field>
-
-