Package graphql.validation.rules
Class NoUnusedFragments
- java.lang.Object
-
- graphql.validation.AbstractRule
-
- graphql.validation.rules.NoUnusedFragments
-
public class NoUnusedFragments extends AbstractRule
-
-
Constructor Summary
Constructors Constructor Description NoUnusedFragments(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkFragmentDefinition(FragmentDefinition fragmentDefinition)
void
checkFragmentSpread(FragmentSpread fragmentSpread)
void
checkOperationDefinition(OperationDefinition operationDefinition)
void
documentFinished(Document document)
-
Methods inherited from class graphql.validation.AbstractRule
addError, addError, addError, checkArgument, checkDirective, checkDocument, checkField, checkInlineFragment, checkObjectValue, checkSelectionSet, checkTypeName, checkVariable, checkVariableDefinition, getErrors, getQueryPath, getValidationContext, getValidationErrorCollector, getValidationUtil, i18n, i18n, isVisitFragmentSpreads, leaveOperationDefinition, leaveSelectionSet, setVisitFragmentSpreads, toString
-
-
-
-
Constructor Detail
-
NoUnusedFragments
public NoUnusedFragments(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Detail
-
checkOperationDefinition
public void checkOperationDefinition(OperationDefinition operationDefinition)
- Overrides:
checkOperationDefinition
in classAbstractRule
-
checkFragmentSpread
public void checkFragmentSpread(FragmentSpread fragmentSpread)
- Overrides:
checkFragmentSpread
in classAbstractRule
-
checkFragmentDefinition
public void checkFragmentDefinition(FragmentDefinition fragmentDefinition)
- Overrides:
checkFragmentDefinition
in classAbstractRule
-
documentFinished
public void documentFinished(Document document)
- Overrides:
documentFinished
in classAbstractRule
-
-