public class Resolver extends Object
| Constructor and Description |
|---|
Resolver(String operationName,
String operationDescription,
boolean batched,
Executable executable,
List<OperationArgument> arguments,
String complexityExpression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
List<OperationArgument> |
getArguments() |
String |
getComplexityExpression() |
Set<String> |
getFingerprints()
Get the fingerprint of this resolver.
|
String |
getOperationDescription() |
String |
getOperationName() |
AnnotatedType |
getReturnType() |
Set<Type> |
getSourceTypes()
Gets the generic Java types of the source objects (object returned by the parent query),
if one is accepted by this resolver.
|
int |
hashCode() |
boolean |
isBatched() |
Object |
resolve(Object source,
Object[] args)
Calls the underlying resolver method/field
|
String |
toString() |
public Resolver(String operationName, String operationDescription, boolean batched, Executable executable, List<OperationArgument> arguments, String complexityExpression)
public Object resolve(Object source, Object[] args) throws InvocationTargetException, IllegalAccessException
source - The object on which the method/field is to be calledargs - Arguments to the underlying method (empty if the underlying resolver is a field)InvocationTargetException - If a reflective invocation of the underlying method/field failsIllegalAccessException - If a reflective invocation of the underlying method/field is not allowedpublic Set<Type> getSourceTypes()
public String getOperationName()
public boolean isBatched()
public String getOperationDescription()
public Set<String> getFingerprints()
public List<OperationArgument> getArguments()
public AnnotatedType getReturnType()
public String getComplexityExpression()
Copyright © 2016–2017. All rights reserved.