Class Executable<T extends AnnotatedElement & Member>
- java.lang.Object
-
- io.leangen.graphql.metadata.execution.Executable<T>
-
- Direct Known Subclasses:
FieldAccessor,MethodInvoker
public abstract class Executable<T extends AnnotatedElement & Member> extends Object
-
-
Constructor Summary
Constructors Constructor Description Executable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object that)TwoExecutables 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 Objectexecute(Object target, Object[] args)abstract AnnotatedType[]getAnnotatedParameterTypes()TgetDelegate()abstract intgetParameterCount()Returns the number of formal parameters this executable takes.abstract Parameter[]getParameters()abstract AnnotatedTypegetReturnType()inthashCode()StringtoString()
-
-
-
Method Detail
-
execute
public abstract Object execute(Object target, Object[] args) throws InvocationTargetException, IllegalAccessException
-
getReturnType
public abstract AnnotatedType getReturnType()
-
getParameterCount
public abstract int getParameterCount()
Returns the number of formal parameters this executable takes. May differ fromgetParameters().length.- Returns:
- The number of formal parameter this executable takes
-
getAnnotatedParameterTypes
public abstract AnnotatedType[] getAnnotatedParameterTypes()
-
getParameters
public abstract Parameter[] getParameters()
-
getDelegate
public T getDelegate()
-
equals
public boolean equals(Object that)
TwoExecutables are considered equal either if their wrapped fields/methods are equal or if one wraps a field and the other its corresponding getter/setter.
-
-