public class InterfaceCreator extends Object
The interface object has fields that might reference other types that should still be created. It might also implement some interfaces that should be created.
| Constructor and Description |
|---|
InterfaceCreator(ReferenceCreator referenceCreator,
FieldCreator fieldCreator,
OperationCreator operationCreator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFields(Type interfaceType,
org.jboss.jandex.ClassInfo classInfo,
Reference reference) |
protected void |
addOperations(Type type,
org.jboss.jandex.ClassInfo classInfo) |
static boolean |
canAddInterfaceIntoScheme(String interfaceFullName)
Check if interface can be added into GraphQL schema, eg.
|
Type |
create(org.jboss.jandex.ClassInfo classInfo,
Reference reference) |
protected ReferenceType |
referenceType() |
void |
setDirectives(Directives directives) |
protected Map<String,Operation> |
toOperations(Map<org.jboss.jandex.DotName,List<org.jboss.jandex.MethodParameterInfo>> sourceFields,
Type type,
org.jboss.jandex.ClassInfo classInfo) |
public InterfaceCreator(ReferenceCreator referenceCreator, FieldCreator fieldCreator, OperationCreator operationCreator)
protected void addFields(Type interfaceType, org.jboss.jandex.ClassInfo classInfo, Reference reference)
public static boolean canAddInterfaceIntoScheme(String interfaceFullName)
interfaceFullName - full name of the interface, including package nameprotected ReferenceType referenceType()
public void setDirectives(Directives directives)
protected void addOperations(Type type, org.jboss.jandex.ClassInfo classInfo)
Copyright © 2018–2021. All rights reserved.