Class AppliedGlobalFragment
java.lang.Object
com.graphql_java_generator.client.request.AppliedGlobalFragment
public class AppliedGlobalFragment
extends java.lang.Object
A global Fragment, when applied, has a name and may have one or more directives.
- Author:
- etienne-sf
-
Constructor Summary
Constructors Constructor Description AppliedGlobalFragment(java.lang.String currentToken, QueryTokenizer qt)
Creates an instance for a global fragment, that has been read in the currentQueryTokenizer
. -
Method Summary
Modifier and Type Method Description void
appendToGraphQLRequests(java.lang.StringBuilder sb, java.util.Map<java.lang.String,java.lang.Object> parameters)
Appends to the givenStringBuilder
this fragment usage ("...fragmentName") followed by the directive declarations, if any
-
Constructor Details
-
AppliedGlobalFragment
public AppliedGlobalFragment(java.lang.String currentToken, QueryTokenizer qt) throws GraphQLRequestPreparationExceptionCreates an instance for a global fragment, that has been read in the currentQueryTokenizer
. The token of thisQueryTokenizer
that has just been read is the fragment declaration (...fragmentName).- Parameters:
currentToken
- The fragment declaration that has just been read in qt, for instance ...fragmentNameqt
-- Throws:
GraphQLRequestPreparationException
-
-
Method Details
-
appendToGraphQLRequests
public void appendToGraphQLRequests(java.lang.StringBuilder sb, java.util.Map<java.lang.String,java.lang.Object> parameters) throws GraphQLRequestExecutionExceptionAppends to the givenStringBuilder
this fragment usage ("...fragmentName") followed by the directive declarations, if any- Parameters:
sb
-parameters
-- Throws:
GraphQLRequestExecutionException
-