Package graphql.schema.idl
Class SchemaTypeExtensionsChecker
- java.lang.Object
-
- graphql.schema.idl.SchemaTypeExtensionsChecker
-
class SchemaTypeExtensionsChecker extends java.lang.Object
A support class to help break up the large SchemaTypeChecker class. This handles the checking of "type extensions"
-
-
Constructor Summary
Constructors Constructor Description SchemaTypeExtensionsChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkEnumTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
private void
checkForEnumValueRedefinition(java.util.List<GraphQLError> errors, TypeDefinition typeDefinition, java.util.List<EnumValueDefinition> enumValueDefinitions, java.util.List<EnumValueDefinition> referenceEnumValueDefinitions)
private void
checkForFieldRedefinition(java.util.List<GraphQLError> errors, TypeDefinition typeDefinition, java.util.List<FieldDefinition> fieldDefinitions, java.util.List<FieldDefinition> referenceFieldDefinitions)
private void
checkForInputValueRedefinition(java.util.List<GraphQLError> errors, InputObjectTypeExtensionDefinition typeDefinition, java.util.List<InputValueDefinition> inputValueDefinitions, java.util.List<InputValueDefinition> referenceInputValues)
private void
checkInputObjectTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
private void
checkInterfaceTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
private void
checkObjectTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
private void
checkScalarTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
private void
checkTypeExtensionHasCorrespondingType(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.lang.String name, java.util.List<? extends TypeDefinition> extTypeList, java.lang.Class<? extends TypeDefinition> targetClass)
(package private) void
checkTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry)
private void
checkUnionTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
private <T> void
forEachBut(T butThisOne, java.util.List<T> list, java.util.function.Consumer<T> consumer)
-
-
-
Method Detail
-
checkTypeExtensions
void checkTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry)
-
checkObjectTypeExtensions
private void checkObjectTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
-
checkInterfaceTypeExtensions
private void checkInterfaceTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
-
checkUnionTypeExtensions
private void checkUnionTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
-
checkEnumTypeExtensions
private void checkEnumTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
-
checkScalarTypeExtensions
private void checkScalarTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
-
checkInputObjectTypeExtensions
private void checkInputObjectTypeExtensions(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.util.Map<java.lang.String,DirectiveDefinition> directiveDefinitionMap)
-
checkTypeExtensionHasCorrespondingType
private void checkTypeExtensionHasCorrespondingType(java.util.List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, java.lang.String name, java.util.List<? extends TypeDefinition> extTypeList, java.lang.Class<? extends TypeDefinition> targetClass)
-
checkForFieldRedefinition
private void checkForFieldRedefinition(java.util.List<GraphQLError> errors, TypeDefinition typeDefinition, java.util.List<FieldDefinition> fieldDefinitions, java.util.List<FieldDefinition> referenceFieldDefinitions)
-
checkForInputValueRedefinition
private void checkForInputValueRedefinition(java.util.List<GraphQLError> errors, InputObjectTypeExtensionDefinition typeDefinition, java.util.List<InputValueDefinition> inputValueDefinitions, java.util.List<InputValueDefinition> referenceInputValues)
-
checkForEnumValueRedefinition
private void checkForEnumValueRedefinition(java.util.List<GraphQLError> errors, TypeDefinition typeDefinition, java.util.List<EnumValueDefinition> enumValueDefinitions, java.util.List<EnumValueDefinition> referenceEnumValueDefinitions)
-
forEachBut
private <T> void forEachBut(T butThisOne, java.util.List<T> list, java.util.function.Consumer<T> consumer)
-
-