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