Package graphql.introspection
Interface IntrospectionWithDirectivesSupport.DirectivePredicateEnvironment
-
- Enclosing class:
- IntrospectionWithDirectivesSupport
@PublicApi public static interface IntrospectionWithDirectivesSupport.DirectivePredicateEnvironment
The parameter environment on a call toIntrospectionWithDirectivesSupport.DirectivePredicate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphQLDirectiveContainer
getDirectiveContainer()
The schema element that contained this directive.java.lang.String
getDirectiveName()
GraphQLSchema
getSchema()
boolean
isDefinedDirective()
A schema has two list of directives.
-
-
-
Method Detail
-
getDirectiveContainer
GraphQLDirectiveContainer getDirectiveContainer()
The schema element that contained this directive. If this is aGraphQLSchema
then this will be null. This is the only case where this is true.- Returns:
- the schema element that contained this directive.
-
getDirectiveName
java.lang.String getDirectiveName()
- Returns:
- the directive to be included
-
isDefinedDirective
boolean isDefinedDirective()
A schema has two list of directives. A list of directives that are defined in that schema and the list of directives that are applied to a schema element. This returns true if this filtering represents the defined directives.- Returns:
- true if this is filtering defined directives
-
getSchema
GraphQLSchema getSchema()
- Returns:
- graphql schema in place
-
-