| 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.getAnnotationsForArgument(org.jboss.jandex.MethodInfo methodInfo,
short pos)
Used when we are creating operation and arguments for these operations
|
static Annotations |
Annotations.getAnnotationsForArray(org.jboss.jandex.Type typeInCollection,
org.jboss.jandex.Type methodTypeInCollection)
Get used when creating arrays.
|
static Annotations |
Annotations.getAnnotationsForClass(org.jboss.jandex.ClassInfo classInfo)
Get used when we create types and references to them
|
static Annotations |
Annotations.getAnnotationsForInputCreator(org.jboss.jandex.MethodInfo method,
short position,
org.jboss.jandex.FieldInfo fieldInfo) |
static Annotations |
Annotations.getAnnotationsForInterfaceField(org.jboss.jandex.MethodInfo methodInfo)
Get used when creating fields on interfaces.
|
static Annotations |
Annotations.getAnnotationsForMethod(org.jboss.jandex.MethodInfo methodInfo)
Get used when creating operations.
|
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 |
|---|---|
static void |
FieldCreator.configure(Field field,
org.jboss.jandex.Type type,
Annotations annotations) |
Reference |
ReferenceCreator.createReferenceForInterfaceField(org.jboss.jandex.Type methodType,
Annotations annotationsForThisMethod,
Reference parentObjectReference)
Get a reference to a field (method response) on an interface
Interfaces is only usable on Type, so the direction in OUT.
|
Reference |
ReferenceCreator.createReferenceForOperationArgument(org.jboss.jandex.Type argumentType,
Annotations annotationsForThisArgument)
Get a reference to a argument type for an operation Direction is IN on an argument (and OUT on a field) In the
case of operation, there is no field (only methods)
|
Reference |
ReferenceCreator.createReferenceForOperationField(org.jboss.jandex.Type fieldType,
Annotations annotationsForMethod)
Get a reference to a field type for an operation Direction is OUT on a field (and IN on an argument) In the case
of operations, there is no fields (only methods)
|
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.
|
Reference |
ReferenceCreator.createReferenceForSourceArgument(org.jboss.jandex.Type argumentType,
Annotations annotationsForThisArgument)
Get a reference to a source argument type for an operation Direction is OUT on an argument.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
TypeNameHelper.getAnyTypeName(Reference reference,
ReferenceType referenceType,
org.jboss.jandex.ClassInfo classInfo,
Annotations annotationsForThisClass,
TypeAutoNameStrategy autoNameStrategy) |
static String |
TypeNameHelper.getAnyTypeName(String parametrizedTypeNameExtension,
ReferenceType referenceType,
org.jboss.jandex.ClassInfo classInfo,
Annotations annotationsForThisClass,
TypeAutoNameStrategy autoNameStrategy) |
static String |
FormatHelper.getDateFormatString(Annotations annotations,
org.jboss.jandex.Type type)
The the date format as a String
This is used to add to the description in the schema
|
static Optional<String> |
DefaultValueHelper.getDefaultValue(Annotations... annotations)
Find a default object in the annotation, or empty if nothing
|
static Optional<String> |
DescriptionHelper.getDescriptionForField(Annotations annotations,
org.jboss.jandex.Type type)
Get the Description on a field or argument
|
static Optional<String> |
DescriptionHelper.getDescriptionForType(Annotations annotations)
Get the description on a class type
|
static Optional<Transformation> |
FormatHelper.getFormat(org.jboss.jandex.Type type,
Annotations annotations)
Get the format model object for a certain type.
|
static Optional<Mapping> |
MappingHelper.getMapping(Field field,
Annotations annotations)
Get the mapping for a certain field.
|
static Optional<Mapping> |
MappingHelper.getMapping(Reference r,
Annotations annotations)
Get the mapping for a certain reference.
|
static Optional<String> |
FormatHelper.getNumberFormatString(Annotations annotations)
The the number format (if any) as a String
This is used to add to the description in the schema
|
static boolean |
FormatHelper.hasAnyFormatting(Annotations annotations)
Test if any formatting is present.
|
static boolean |
NonNullHelper.markAsNonNull(org.jboss.jandex.Type type,
Annotations annotations)
Check if we should mark a certain type as non null.
|
static boolean |
NonNullHelper.markAsNonNull(org.jboss.jandex.Type type,
Annotations annotations,
boolean ignorePrimitiveCheck)
Check if we should mark a certain type as non null.
|
static boolean |
MappingHelper.shouldCreateTypeInSchema(Annotations annotations) |
static boolean |
IgnoreHelper.shouldIgnore(Annotations annotations)
See if we should ignore this.
|
static boolean |
IgnoreHelper.shouldIgnore(Annotations annotations,
org.jboss.jandex.FieldInfo fieldInfo)
See if we should ignore this.
|
Copyright © 2018–2021. All rights reserved.