public class NoUnusedFragments extends AbstractRule
Constructor and Description |
---|
NoUnusedFragments(ValidationContext validationContext,
ValidationErrorCollector validationErrorCollector) |
Modifier and Type | Method and Description |
---|---|
void |
checkFragmentDefinition(FragmentDefinition fragmentDefinition) |
void |
checkFragmentSpread(FragmentSpread fragmentSpread) |
void |
checkOperationDefinition(OperationDefinition operationDefinition) |
void |
documentFinished(Document document) |
addError, addError, addError, checkArgument, checkDirective, checkDocument, checkField, checkInlineFragment, checkSelectionSet, checkTypeName, checkVariable, checkVariableDefinition, getErrors, getQueryPath, getValidationContext, getValidationErrorCollector, getValidationUtil, isVisitFragmentSpreads, leaveOperationDefinition, leaveSelectionSet, setVisitFragmentSpreads, toString
public NoUnusedFragments(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
public void checkOperationDefinition(OperationDefinition operationDefinition)
checkOperationDefinition
in class AbstractRule
public void checkFragmentSpread(FragmentSpread fragmentSpread)
checkFragmentSpread
in class AbstractRule
public void checkFragmentDefinition(FragmentDefinition fragmentDefinition)
checkFragmentDefinition
in class AbstractRule
public void documentFinished(Document document)
documentFinished
in class AbstractRule