| Package | Description |
|---|---|
| io.smallrye.graphql.schema | |
| io.smallrye.graphql.schema.creator | |
| io.smallrye.graphql.schema.helper |
| Modifier and Type | Method and Description |
|---|---|
static Annotations |
Annotations.getAnnotationsForPojo(Direction direction,
org.jboss.jandex.FieldInfo fieldInfo)
Get used when creating fields on inputs and types.
|
static Annotations |
Annotations.getAnnotationsForPojo(Direction direction,
org.jboss.jandex.FieldInfo fieldInfo,
org.jboss.jandex.MethodInfo methodInfo)
Get used when creating fields on inputs and types.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Reference> |
ReferenceCreator.collectParametrizedTypes(org.jboss.jandex.ClassInfo classInfo,
List<? extends org.jboss.jandex.Type> parametrizedTypeArguments,
Direction direction,
Reference parentObjectReference) |
Optional<Field> |
FieldCreator.createFieldForPojo(Direction direction,
org.jboss.jandex.FieldInfo fieldInfo,
org.jboss.jandex.MethodInfo methodInfo,
Reference parentObjectReference)
Creates a field from a field and method.
|
Optional<Field> |
FieldCreator.createFieldForPojo(Direction direction,
org.jboss.jandex.FieldInfo fieldInfo,
Reference parentObjectReference)
Creates a field from a public field.
|
Reference |
ReferenceCreator.createReference(Direction direction,
org.jboss.jandex.ClassInfo classInfo)
This method create a reference to type that might not yet exist.
|
Reference |
ReferenceCreator.createReference(Direction direction,
org.jboss.jandex.ClassInfo classInfo,
boolean createAdapedToType,
boolean createAdapedWithType,
Reference parentObjectReference,
Map<String,Reference> parametrizedTypeArgumentsReferences,
boolean addParametrizedTypeNameExtension)
This method create a reference to type that might not yet exist.
|
Reference |
ReferenceCreator.createReferenceForAdapter(Direction direction,
org.jboss.jandex.Type fieldType,
Annotations annotations)
Get a reference to a field type for an adapter on a field
|
Reference |
ReferenceCreator.createReferenceForPojoField(Direction direction,
org.jboss.jandex.Type fieldType,
org.jboss.jandex.Type methodType,
Annotations annotations,
Reference parentObjectReference)
Get a reference to a Field Type for a InputType or Type.
|
protected static boolean |
FieldCreator.isGraphQlField(Direction direction,
org.jboss.jandex.FieldInfo fieldInfo,
org.jboss.jandex.MethodInfo methodInfo)
Checks if method and/or field are use-able as a GraphQL-Field.
|
protected void |
ModelCreator.populateField(Direction direction,
Field field,
org.jboss.jandex.Type type,
Annotations annotations) |
protected void |
ModelCreator.populateField(Direction direction,
Field field,
org.jboss.jandex.Type fieldType,
org.jboss.jandex.Type methodType,
Annotations annotations) |
| Modifier and Type | Method and Description |
|---|---|
static Direction |
Direction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<AdaptWith> |
AdaptWithHelper.getAdaptWith(Direction direction,
ReferenceCreator referenceCreator,
Field field,
Annotations annotations)
Get the adaptWith for a certain field (if any)
|
static Optional<AdaptWith> |
AdaptWithHelper.getAdaptWith(Direction direction,
ReferenceCreator referenceCreator,
Reference r,
Annotations annotations)
Get the adapt with for a certain reference.
|
static Optional<AdaptWith> |
AdaptWithHelper.getAdaptWith(Direction direction,
ReferenceCreator referenceCreator,
Reference r,
Annotations annotations,
io.smallrye.graphql.schema.helper.AdaptWithHelper.AdapterType adapterType)
Get the adapt with for a certain reference.
|
static String |
MethodHelper.getPropertyName(Direction direction,
String methodName)
Get the correct field name from a method
|
static boolean |
MethodHelper.isPropertyMethod(Direction direction,
org.jboss.jandex.MethodInfo method)
See if this is a getter or setter for a field property (depending on the direction)
|
static boolean |
MethodHelper.isPropertyMethod(Direction direction,
String methodName)
Deprecated.
|
Copyright © 2018–2022. All rights reserved.