Index
All Classes and Interfaces|All Packages
C
- com.graphql_java_generator.annotation - package com.graphql_java_generator.annotation
-
All annotations used by the GraphQL-generator client part
- com.graphql_java_generator.customscalars - package com.graphql_java_generator.customscalars
-
This package provide "as is" some
GraphQLScalarType
s. - com.graphql_java_generator.util - package com.graphql_java_generator.util
- concatStreams(Class<T>, boolean, T, T, T, List<? extends T>...) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Concatenate a non limited number of lists into a stream.
- CustomScalar - Class in com.graphql_java_generator.customscalars
-
This class represents a custom scalar, with all the information to allow proper execution of the generated code
- CustomScalar(GraphQLScalarType, Class<?>) - Constructor for class com.graphql_java_generator.customscalars.CustomScalar
- CustomScalarRegistry - Interface in com.graphql_java_generator.customscalars
-
Registry for all
GraphQLScalarType
available.
D
- Date - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeDate
-
Custom Scalar for Date management.
- DateTime - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeDateTime
-
Custom Scalar for DateTime management.
F
- fieldName() - Element in annotation type com.graphql_java_generator.annotation.GraphQLNonScalar
-
The name of the field's attribute, as defined in the GraphQL schema.
- fieldName() - Element in annotation type com.graphql_java_generator.annotation.GraphQLScalar
-
The name of the field's attribute, as defined in the GraphQL schema.
G
- getCamelCase(String) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Convert the given name, to a camel case name.
- getClassSimpleName(String) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Extract the simple name for a class (without the package name), from its full class name (with the package name)
- getCustomScalar(String) - Method in interface com.graphql_java_generator.customscalars.CustomScalarRegistry
-
Retrieves the registered
GraphQLScalarType
for this GraphQL CustomScalar. - getGetter(Class<?>, Field) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Retrieves the getter for the given field on the given field
- getGraphQLCustomScalarType(String) - Method in interface com.graphql_java_generator.customscalars.CustomScalarRegistry
-
Retrieves the registered
GraphQLScalarType
for this GraphQL CustomScalar. - getGraphQLScalarType() - Method in class com.graphql_java_generator.customscalars.CustomScalar
- getGraphQLTypeName() - Method in class com.graphql_java_generator.customscalars.CustomScalar
- getJavaName(String) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Returns a valid java identifier for the given name.
- getLastModified(File, boolean) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Returns the maximum or minimum value for the lastModified of the given file, or of all the files (not folders) contained into this folder.
- getMethod(String, Class<?>, Class<?>...) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Retrieves the asked method, from its name, class and parameters.
- getPackageName(String) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Extract the package name for a class, from its full class name (with the package name)
- getPascalCase(String) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Convert the given name, which is supposed to be in camel case (for instance: thisIsCamelCase) to a pascal case string (for instance: ThisIsCamelCase).
- getQuotedScanBasePackages(String) - Method in class com.graphql_java_generator.util.GraphqlUtils
- getRuntimeVersion() - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Returns the version of the runtime, that is used to check that the runtime's version is the same as the Maven or Gradle plugin's version.
- getSetter(Class<T>, Field) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Retrieves the setter for the given field on the given field
- getValueAsString(Value<?>) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Returns the given value, as string, as it can be written into the
GraphQLDirective.parameterValues()
of theGraphQLDirective
java annotation.
A str string default value will be returned as "str",a JEDI enum value will be returned as "JEDI", an object will be returned as "{name:\"specific name\",appearsIn:[NEWHOPE,EMPIRE],type:\"Human\"}"... - getValueAsText(Value<?>) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Returns the given value, as text, as it can be written into a generated GraphQL schema.
A str string default value will be returned as "str",a JEDI enum value will be returned as JEDI, ... - getValueClazz() - Method in class com.graphql_java_generator.customscalars.CustomScalar
- GraphQLBase64String - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeBase64String
- GraphQLDeprecatedResponseForRequestObject - Annotation Type in com.graphql_java_generator.annotation
- GraphQLDirective - Annotation Type in com.graphql_java_generator.annotation
-
This annotation contains the information for a directive that was applied to a GraphQL item in the GraphQL schema used to generate the code.
- GraphQLDirectives - Annotation Type in com.graphql_java_generator.annotation
-
List of all directives that apply to this GraphQL type, field or parameter
- GraphQLEnumType - Annotation Type in com.graphql_java_generator.annotation
- GraphQLIgnore - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks the type, field or method as a non GraphQL one.
- GraphQLInputParameters - Annotation Type in com.graphql_java_generator.annotation
-
This class indicates that this field has at least one input parameter.
- GraphQLInputType - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks all generated classes that are generated to match a GraphQL input type, as defined in the GraphQL schema.
- GraphQLInterfaceType - Annotation Type in com.graphql_java_generator.annotation
- GraphQLNonScalar - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks all fields in the generated classes, that are non scalar.
- GraphQLObjectType - Annotation Type in com.graphql_java_generator.annotation
- GraphQLQuery - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks all generated classes that are queries/mutations/subscription, as defined in the GraphQL schema.
- GraphQLScalar - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks all fields in the generated classes, that are standard GraphQL scalar.
- GraphQLScalarTypeBase64String - Class in com.graphql_java_generator.customscalars
- GraphQLScalarTypeBase64String() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeBase64String
- GraphQLScalarTypeDate - Class in com.graphql_java_generator.customscalars
-
A proposed Date scalar, that stores dates in String, formatted as: YYYY-MM-DD
This Scalar is proposed to be used, for integration testing (checks that the plugin correctly manages Custom Scalars, see samples) and with more documentation to help people to create their own Custom Scalar implementations. - GraphQLScalarTypeDate() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeDate
- GraphQLScalarTypeDateTime - Class in com.graphql_java_generator.customscalars
-
A proposed DateTime scalar, that stores dates in String, formatted as: 2019-07-03T20:47:55Z
This Scalar is proposed to be used, for integration testing (checks that the plugin correctly manages Custom Scalars, see samples) and with more documentation to help people to create their own Custom Scalar implementations. - GraphQLScalarTypeDateTime() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeDateTime
- GraphQLScalarTypeIDClient - Class in com.graphql_java_generator.customscalars
-
ID are managed as String, on client side.
- GraphQLScalarTypeIDClient() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeIDClient
- GraphQLScalarTypeIDServer - Class in com.graphql_java_generator.customscalars
-
ID are managed as UUID, on server side.
- GraphQLScalarTypeIDServer() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeIDServer
- GraphQLScalarTypeString - Class in com.graphql_java_generator.customscalars
-
Useless String scalar.
It's used both as a sample, to be completed by a developper, according to his/her needs, and for the use in some tests of the plugin logic (like in the Shopify sample, to handle (badly) various scalar as based on strings).
It's actually a bad management, as this custom scalars does nothing, but read basic strings. - GraphQLScalarTypeString() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeString
- graphQLTypeSimpleName() - Element in annotation type com.graphql_java_generator.annotation.GraphQLNonScalar
-
The name of the Scalar type, as defined in the GraphQL schema, without indication of list or mandatory.
- graphQLTypeSimpleName() - Element in annotation type com.graphql_java_generator.annotation.GraphQLScalar
-
The name of the Scalar type, as defined in the GraphQL schema, without indication of list or mandatory.
- GraphQLUnionType - Annotation Type in com.graphql_java_generator.annotation
- graphqlUtils - Static variable in class com.graphql_java_generator.util.GraphqlUtils
-
This singleton is usable in default method, within interfaces
- GraphqlUtils - Class in com.graphql_java_generator.util
- GraphqlUtils() - Constructor for class com.graphql_java_generator.util.GraphqlUtils
I
- ID - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeIDClient
-
UUID are managed as String, on client side.
- ID - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeIDServer
-
UUID are managed as String, on client side.
- invokeGetter(Object, String) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Invoke the getter for the given field name, on the given object.
- invokeMethod(Method, Object, Object...) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Invoke the given setter on the given object, with the given value.
- invokeMethod(String, Object, Object...) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Calls the 'methodName' method on the given object.
- invokeSetter(Object, Field, Object) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Invoke the setter for the given field, on the given object.
- invokeSetter(Object, String, Object) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Invoke the setter for the
Field
of the given name, on the given object. - invokeStaticMethod(String, Class<?>) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Calls the 'methodName' method on the given class.
- isJavaReservedWords(String) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Returns true if name is a reserved java keyword
- itemsMandatory() - Element in annotation type com.graphql_java_generator.annotation.GraphQLInputParameters
-
Contains for each input parameters named in
GraphQLInputParameters.names()
, true if this parameter is a list and its items are mandatory (according to GraphQL list's specification), and false otherwise. - iterableConcreteClassToListInterface(Iterable<? extends I>) - Method in class com.graphql_java_generator.util.GraphqlUtils
- iterableToList(Iterable<I>) - Method in class com.graphql_java_generator.util.GraphqlUtils
J
- JAVA_KEYWORD_PREFIX - Static variable in class com.graphql_java_generator.util.GraphqlUtils
- javaClass() - Element in annotation type com.graphql_java_generator.annotation.GraphQLNonScalar
-
Contains the java data type that is has used to store the data, on both the client and the server side.
- javaClass() - Element in annotation type com.graphql_java_generator.annotation.GraphQLScalar
-
Contains the java data type that is has used to store the data, on both the client and the server side.
L
- listDepth() - Element in annotation type com.graphql_java_generator.annotation.GraphQLNonScalar
-
The list depth for this field.
- listDepth() - Element in annotation type com.graphql_java_generator.annotation.GraphQLScalar
-
The list depth for this field.
- listDepths() - Element in annotation type com.graphql_java_generator.annotation.GraphQLInputParameters
-
Contains for each input parameters named in
GraphQLInputParameters.names()
, 0 if this parameter is not a list, and a positive number if this input parameter is a list (2, for instance for [[Int]]).
M
- mandatories() - Element in annotation type com.graphql_java_generator.annotation.GraphQLInputParameters
-
Contains for each input parameters named in
GraphQLInputParameters.names()
, true if this parameter is mandatory, and false otherwise. - mutation - Enum constant in enum com.graphql_java_generator.annotation.RequestType
N
- name() - Element in annotation type com.graphql_java_generator.annotation.GraphQLDirective
-
The name of the Directive, as defined in the GraphQL schema.
- name() - Element in annotation type com.graphql_java_generator.annotation.GraphQLQuery
-
The name of the query/mutation/subscription, that is represented by the annotated java class, as defined in the GraphQL schema.
- names() - Element in annotation type com.graphql_java_generator.annotation.GraphQLInputParameters
-
Contains the list of the names for each of the input parameters of this field.
O
- optionalToObject(Optional<T>) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Transform an
Optional
, as returned by Spring Data repositories, into a standard Java, which is null if there is no value. - orderList(List<?>, List<T>, String) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Reads a non ordered list, and return the same content sorted according the keys list.
P
- parameterNames() - Element in annotation type com.graphql_java_generator.annotation.GraphQLDirective
-
The list of parameter names for each parameter of this directive applied to the current item.
- parameterTypes() - Element in annotation type com.graphql_java_generator.annotation.GraphQLDirective
-
The list of parameter types for each parameter of this directive applied to the current item.
- parameterValues() - Element in annotation type com.graphql_java_generator.annotation.GraphQLDirective
-
The list of values types for each parameter of this directive applied to the current item, in their string representation.
Q
- query - Enum constant in enum com.graphql_java_generator.annotation.RequestType
R
- registerGraphQLScalarType(String, GraphQLScalarType, Class<?>) - Method in interface com.graphql_java_generator.customscalars.CustomScalarRegistry
-
Manually register one
GraphQLScalarType
. - repeat(String, int) - Method in class com.graphql_java_generator.util.VelocityUtils
- RequestType - Enum in com.graphql_java_generator.annotation
-
List of the three GraphQL kind of requests: query, mutation and subscription
S
- setGraphQLScalarType(GraphQLScalarType) - Method in class com.graphql_java_generator.customscalars.CustomScalar
- setValueClazz(Class<?>) - Method in class com.graphql_java_generator.customscalars.CustomScalar
- String - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeString
-
Useless String scalar.
It's used both as a sample, to be completed by a developper, according to his/her needs, and for the use in some tests of the plugin logic (like in the Shopify sample, to handle (badly) various scalar as based on strings).
It's actually a bad management, as this custom scalars does nothing, but read basic strings. - stringToEnumValue(Object, Class<?>) - Method in class com.graphql_java_generator.util.GraphqlUtils
-
Returns the given enumValue given as a String, into the enum value from the generated POJO of the given class.
This can not be a parameterized method as the return value may be either an enum, a list of enums... - subscription - Enum constant in enum com.graphql_java_generator.annotation.RequestType
T
- type() - Element in annotation type com.graphql_java_generator.annotation.GraphQLQuery
-
The type : query, mutation or subscription, as defined in the GraphQL schema.
- types() - Element in annotation type com.graphql_java_generator.annotation.GraphQLInputParameters
-
Contains the list of the types for each of the input parameters of this field.
V
- value() - Element in annotation type com.graphql_java_generator.annotation.GraphQLDeprecatedResponseForRequestObject
-
The full name of the query, mutation or subscription that this generated ResponseType overrides
- value() - Element in annotation type com.graphql_java_generator.annotation.GraphQLDirectives
-
The directives that were defined in the GraphQL schema for this item
- value() - Element in annotation type com.graphql_java_generator.annotation.GraphQLEnumType
-
The name of the enum that is represented by the annotated java class, as defined in the GraphQL schema.
- value() - Element in annotation type com.graphql_java_generator.annotation.GraphQLInputType
-
The name of the type that is represented by the annotated java class, as defined in the GraphQL schema.
- value() - Element in annotation type com.graphql_java_generator.annotation.GraphQLInterfaceType
-
The name of the interface that is represented by the annotated java class, as defined in the GraphQL schema.
- value() - Element in annotation type com.graphql_java_generator.annotation.GraphQLObjectType
-
The name of the type that is represented by the annotated java class, as defined in the GraphQL schema.
- value() - Element in annotation type com.graphql_java_generator.annotation.GraphQLUnionType
-
The name of the union that is represented by the annotated java class, as defined in the GraphQL schema.
- valueOf(String) - Static method in enum com.graphql_java_generator.annotation.RequestType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.graphql_java_generator.annotation.RequestType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- velocityUtils - Static variable in class com.graphql_java_generator.util.VelocityUtils
- VelocityUtils - Class in com.graphql_java_generator.util
-
Various methods used by the velocity templates while generating the code.
- VelocityUtils() - Constructor for class com.graphql_java_generator.util.VelocityUtils
All Classes and Interfaces|All Packages