public class AbstractRule
extends java.lang.Object
Constructor and Description |
---|
AbstractRule(ValidationContext validationContext,
ValidationErrorCollector validationErrorCollector) |
public AbstractRule(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
public boolean isVisitFragmentSpreads()
public void setVisitFragmentSpreads(boolean visitFragmentSpreads)
public ValidationUtil getValidationUtil()
public void addError(ValidationErrorType validationErrorType, java.util.List<? extends Node<?>> locations, java.lang.String description)
public void addError(ValidationErrorType validationErrorType, SourceLocation location, java.lang.String description)
public void addError(ValidationError.Builder validationError)
public java.util.List<ValidationError> getErrors()
public ValidationContext getValidationContext()
public ValidationErrorCollector getValidationErrorCollector()
protected java.util.List<java.lang.String> getQueryPath()
public void checkDocument(Document document)
public void checkArgument(Argument argument)
public void checkTypeName(TypeName typeName)
public void checkVariableDefinition(VariableDefinition variableDefinition)
public void checkField(Field field)
public void checkInlineFragment(InlineFragment inlineFragment)
public void checkFragmentSpread(FragmentSpread fragmentSpread)
public void checkFragmentDefinition(FragmentDefinition fragmentDefinition)
public void checkOperationDefinition(OperationDefinition operationDefinition)
public void leaveOperationDefinition(OperationDefinition operationDefinition)
public void checkSelectionSet(SelectionSet selectionSet)
public void leaveSelectionSet(SelectionSet selectionSet)
public void checkVariable(VariableReference variableReference)
public void documentFinished(Document document)
public java.lang.String toString()
toString
in class java.lang.Object