public class PatternLanguageJavaValidator extends AbstractPatternLanguageJavaValidator implements IIssueCallback
Validators implemented:
org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.AbstractDeclarativeValidator.StateAccess
org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANNOTATION_PARAMETER_TYPE_ERROR |
static java.lang.String |
DUPLICATE_PATTERN_DEFINITION_MESSAGE |
static java.lang.String |
DUPLICATE_VARIABLE_MESSAGE |
static java.lang.String |
MISSING_ANNOTATION_ATTRIBUTE |
static java.lang.String |
RECURSIVE_PATTERN_CALL |
static java.lang.String |
TRANSITIVE_CLOSURE_ARITY_IN_PATTERNCALL |
static java.lang.String |
TRANSITIVE_CLOSURE_ONLY_IN_POSITIVE_COMPOSITION |
static java.lang.String |
UNKNOWN_ANNOTATION_ATTRIBUTE |
static java.lang.String |
UNUSED_PRIVATE_PATTERN_MESSAGE |
CURRENT_LANGUAGE_NAME, ISSUE_SEVERITIES
Constructor and Description |
---|
PatternLanguageJavaValidator() |
checkAssignment, checkAssignment, checkAssignment, checkCasts, checkCatchClausesOrder, checkClosureParameterTypes, checkClosureParams, checkConstructorArgumentsAreValid, checkDelegateConstructorIsFirst, checkDeprecated, checkDeprecated, checkDeprecated, checkDeprecated, checkDeprecated, checkDuplicatedCases, checkExplicitOperationCall, checkExplicitOperationCall, checkExplicitOperationCall, checkImports, checkIncompleteCasesOnEnum, checkInnerExpressions, checkInstanceOf, checkInstanceOfOrder, checkLocalUsageOfDeclared, checkLocalUsageOfSwitchParameter, checkNoCircularConstructorCall, checkNoForwardReferences, checkNoJavaStyleTypeCasting, checkOperandTypesForTripleEquals, checkPrimitiveComparedToNull, checkRedundantCase, checkReturn, checkTypeArguments, checkTypeArguments, checkTypeGuards, checkTypeGuardsOrder, checkTypeLiteral, checkTypeParameterConstraintIsValid, checkTypeParameterNotUsedInStaticContext, checkTypeReferenceIsNotVoid, checkTypeReferenceIsNotVoid, checkTypes, checkVariableDeclaration, checkVariableIsNotInferredAsVoid, doCheckTypeParameterForwardReference
acceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, getMessageAcceptor, setInjector, setMessageAcceptor
public static final java.lang.String DUPLICATE_VARIABLE_MESSAGE
public static final java.lang.String DUPLICATE_PATTERN_DEFINITION_MESSAGE
public static final java.lang.String UNKNOWN_ANNOTATION_ATTRIBUTE
public static final java.lang.String MISSING_ANNOTATION_ATTRIBUTE
public static final java.lang.String ANNOTATION_PARAMETER_TYPE_ERROR
public static final java.lang.String TRANSITIVE_CLOSURE_ARITY_IN_PATTERNCALL
public static final java.lang.String TRANSITIVE_CLOSURE_ONLY_IN_POSITIVE_COMPOSITION
public static final java.lang.String UNUSED_PRIVATE_PATTERN_MESSAGE
public static final java.lang.String RECURSIVE_PATTERN_CALL
public void checkPatternParameters(Pattern pattern)
public void checkPrivatePatternUsage(Pattern pattern)
public void checkPrivatePatternCall(PatternCall call)
public void checkPatternCallParameters(PatternCall call)
public void checkApplicabilityOfTransitiveClosureInPatternCall(PatternCall call)
public void checkPatterns(PatternModel model)
public void checkPatternBody(PatternBody body)
public void checkAnnotation(Annotation annotation)
public void checkCompareConstraints(CompareConstraint constraint)
public void checkRecursivePatternCall(PatternCall call)
public void checkPackageDeclaration(PatternModel model)
public void checkReturnTypeOfCheckConstraints(CheckConstraint checkConstraint)
public void checkVariableNames(PatternBody body)
public void checkVariableUsageCounters(PatternBody body)
public boolean isNamedSingleUse(Variable variable)
public boolean isUnnamedSingleUseVariable(Variable variable)
public void checkForImpureJavaCallsInCheckConstraints(CheckConstraint checkConstraint)
public void checkForImpureJavaCallsInEvalExpressions(FunctionEvaluationValue eval)
public void warning(java.lang.String message, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String code, java.lang.String... issueData)
warning
in interface IIssueCallback
warning
in class org.eclipse.xtext.validation.AbstractDeclarativeValidator
public void error(java.lang.String message, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String code, java.lang.String... issueData)
error
in interface IIssueCallback
error
in class org.eclipse.xtext.validation.AbstractDeclarativeValidator