Package graphql.execution.directives
Class QueryDirectivesImpl
java.lang.Object
graphql.execution.directives.QueryDirectivesImpl
- All Implemented Interfaces:
QueryDirectives
These objects are ALWAYS in the context of a single MergedField
Also note we compute these values lazily
-
Nested Class Summary
Nested classes/interfaces inherited from interface graphql.execution.directives.QueryDirectives
QueryDirectives.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionQueryDirectivesImpl
(MergedField mergedField, GraphQLSchema schema, CoercedVariables coercedVariables, Supplier<NormalizedVariables> normalizedVariableValues, GraphQLContext graphQLContext, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptiongetImmediateAppliedDirective
(String directiveName) This will return a list of the named applied directives that are immediately on this merged field.This will return a map of theField
s inside aMergedField
and the immediate applied directives that are on each specific fieldThis will return a map of the applied directives that are immediately on a merged fieldgetImmediateDirective
(String directiveName) This will return a list of the named directives that are immediately on this merged field.This will return a map of theField
s inside aMergedField
and the immediate directives that are on each specific fieldThis will return a map of the directives that are immediately on a merged fieldThis will return a map ofQueryAppliedDirective
to a map of their argument values inNormalizedInputValue
form
-
Constructor Details
-
QueryDirectivesImpl
public QueryDirectivesImpl(MergedField mergedField, GraphQLSchema schema, CoercedVariables coercedVariables, Supplier<NormalizedVariables> normalizedVariableValues, GraphQLContext graphQLContext, Locale locale)
-
-
Method Details
-
getImmediateDirectivesByField
Description copied from interface:QueryDirectives
This will return a map of theField
s inside aMergedField
and the immediate directives that are on each specific field- Specified by:
getImmediateDirectivesByField
in interfaceQueryDirectives
- Returns:
- a map of all directives on each field inside this
-
getImmediateAppliedDirectivesByField
Description copied from interface:QueryDirectives
This will return a map of theField
s inside aMergedField
and the immediate applied directives that are on each specific field- Specified by:
getImmediateAppliedDirectivesByField
in interfaceQueryDirectives
- Returns:
- a map of all directives on each field inside this
-
getNormalizedInputValueByImmediateAppliedDirectives
public Map<QueryAppliedDirective,Map<String, getNormalizedInputValueByImmediateAppliedDirectives()NormalizedInputValue>> Description copied from interface:QueryDirectives
This will return a map ofQueryAppliedDirective
to a map of their argument values inNormalizedInputValue
formNOTE : This will only be available when
ExecutableNormalizedOperationFactory
is used to create theQueryAppliedDirective
information- Specified by:
getNormalizedInputValueByImmediateAppliedDirectives
in interfaceQueryDirectives
- Returns:
- a map of applied directive to named argument values
-
getImmediateDirectivesByName
Description copied from interface:QueryDirectives
This will return a map of the directives that are immediately on a merged field- Specified by:
getImmediateDirectivesByName
in interfaceQueryDirectives
- Returns:
- a map of all the directives immediately on this merged field
-
getImmediateAppliedDirectivesByName
Description copied from interface:QueryDirectives
This will return a map of the applied directives that are immediately on a merged field- Specified by:
getImmediateAppliedDirectivesByName
in interfaceQueryDirectives
- Returns:
- a map of all the applied directives immediately on this merged field
-
getImmediateDirective
Description copied from interface:QueryDirectives
This will return a list of the named directives that are immediately on this merged field. Read above for why this is a list of directives and not just one- Specified by:
getImmediateDirective
in interfaceQueryDirectives
- Parameters:
directiveName
- the named directive- Returns:
- a list of the named directives that are immediately on this merged field
-
getImmediateAppliedDirective
Description copied from interface:QueryDirectives
This will return a list of the named applied directives that are immediately on this merged field. Read above for why this is a list of applied directives and not just one- Specified by:
getImmediateAppliedDirective
in interfaceQueryDirectives
- Parameters:
directiveName
- the named directive- Returns:
- a list of the named applied directives that are immediately on this merged field
-