Package com._1c.g5.v8.dt.bsl.validation
Class BslJavaValidator
- java.lang.Object
-
- org.eclipse.xtext.validation.AbstractInjectableValidator
-
- org.eclipse.xtext.validation.AbstractDeclarativeValidator
-
- com._1c.g5.v8.dt.bsl.validation.AbstractBslJavaValidator
-
- com._1c.g5.v8.dt.bsl.validation.BslJavaValidator
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator
,org.eclipse.xtext.validation.ValidationMessageAcceptor
public class BslJavaValidator extends AbstractBslJavaValidator
Validate BSL
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BslJavaValidator.ErrorDescr
Contains error contents from checking expressions types-
Nested classes/interfaces inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator.MethodWrapper, org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.AbstractDeclarativeValidator.StateAccess
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator
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
-
-
Constructor Summary
Constructors Constructor Description BslJavaValidator()
-
Method Summary
-
Methods inherited from class com._1c.g5.v8.dt.bsl.validation.AbstractBslJavaValidator
getEPackages
-
Methods inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
acceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, addIssue, addIssue, addIssue, addIssue, addIssue, addIssueToState, checkDone, createDiagnostic, createDiagnostic, createMethodWrapper, error, error, error, error, error, error, error, error, getCancelIndicator, getChain, getCheckMode, getContext, getCurrentMethod, getCurrentObject, getIssueSeverities, getMessageAcceptor, guard, handleExceptionDuringValidation, info, info, info, info, info, info, info, info, internalValidate, isIgnored, newInstance, setInjector, setMessageAcceptor, toDiagnosticSeverity, warning, warning, warning, warning, warning, warning
-
-
-
-
Method Detail
-
checkLibraryModule
public void checkLibraryModule(Module module)
-
checkVariableNamesAreUnique
public void checkVariableNamesAreUnique(Module module)
-
checkVariableNamesAreUnique
public void checkVariableNamesAreUnique(Method method)
-
checkLabelNamesAreUnique
public void checkLabelNamesAreUnique(Block block)
-
checkMethodNamesAreUnique
public void checkMethodNamesAreUnique(Module module)
-
checkLocalVariablesNotExported
public void checkLocalVariablesNotExported(Method method)
-
checkStaticFeatureAccess
public void checkStaticFeatureAccess(StaticFeatureAccess acc)
-
checkIsAppropriateCtor
public void checkIsAppropriateCtor(OperatorStyleCreator creator)
-
checkTypeEnvironments
public void checkTypeEnvironments(OperatorStyleCreator creator)
-
checkBreakStatement
public void checkBreakStatement(BreakStatement stmt)
-
checkContinueStatement
public void checkContinueStatement(ContinueStatement stmt)
-
checkReturnStatement
public void checkReturnStatement(ReturnStatement stmt)
-
checkRaiseStatement
public void checkRaiseStatement(RaiseStatement stmt)
-
checkGotoStatement
public void checkGotoStatement(GotoStatement stmt)
-
checkEventHandlerStatement
public void checkEventHandlerStatement(EventHandlerStatement stmt)
-
validateOrderOfModulePart
public void validateOrderOfModulePart(Module module)
-
validateOrderOfMethodPart
public void validateOrderOfMethodPart(Method method)
-
checkDateLiteral
public void checkDateLiteral(DateLiteral date)
-
checkPragma
public void checkPragma(Pragma pragma)
-
checkNumberLiteralExpression
public void checkNumberLiteralExpression(NumberLiteral literal)
-
checkModuleExtension
public void checkModuleExtension(Module module)
-
checkSimpleStatement
public void checkSimpleStatement(SimpleStatement statement)
-
checkTheSameGlobalElementNameForModuleVariable
public void checkTheSameGlobalElementNameForModuleVariable(Block block)
-
checkDynamicFeatureAccess
public void checkDynamicFeatureAccess(DynamicFeatureAccess feature)
-
checkMethodForStatementsAfterReturn
public void checkMethodForStatementsAfterReturn(Method method)
-
checkExpressionType
public void checkExpressionType(Statement stat)
-
checkMethodEnvironmentsForEmty
public void checkMethodEnvironmentsForEmty(Method method)
-
checkDynamicFeatureAccessForUnknownLeftPart
public void checkDynamicFeatureAccessForUnknownLeftPart(StaticFeatureAccess feature)
-
checkDynamicFeatureAccessForUnknownLeftPart
public void checkDynamicFeatureAccessForUnknownLeftPart(DynamicFeatureAccess feature)
-
checkPreprocessorsLines
public void checkPreprocessorsLines(Preprocessor preprocessor)
-
checkIfPreprocessorPartEnvironments
public void checkIfPreprocessorPartEnvironments(IfPreprocessor preprocessor)
-
checkStringLiteral
public void checkStringLiteral(StringLiteral literal)
-
checkPragmaForUnusedMethod
public void checkPragmaForUnusedMethod(Pragma pragma)
-
checkForEachStatetementCollection
public void checkForEachStatetementCollection(ForEachStatement statement)
-
checkTypeInOperatorNew
public void checkTypeInOperatorNew(OperatorStyleCreator creator)
-
checkIndexesExpression
public void checkIndexesExpression(IndexAccess access)
-
checkFormAttributeProperatyAssign
public void checkFormAttributeProperatyAssign(SimpleStatement statement)
-
checkReturningTypeForEnvironment
public void checkReturningTypeForEnvironment(SimpleStatement statement)
-
checkMethodAnnotations
public void checkMethodAnnotations(Method method)
-
checkValidAccessToSysEnumProperty
public void checkValidAccessToSysEnumProperty(DynamicFeatureAccess feature)
-
checkDeprecatedMethod
public void checkDeprecatedMethod(StaticFeatureAccess acc)
-
checkRegionPreprocessor
public void checkRegionPreprocessor(RegionPreprocessor preprocessor)
-
checkAsyncMethod
public void checkAsyncMethod(Method method)
-
checkAwaitExpression
public void checkAwaitExpression(AwaitExpression expr)
-
checkMobileStandaloneServerAvailability
public void checkMobileStandaloneServerAvailability(PreprocessorLiteralExpression literalExpression)
-
checkExecuteStatement
public void checkExecuteStatement(ExecuteStatement expr)
-
warning
protected void warning(String message, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature feature, int index, String code, String... issueData)
- Overrides:
warning
in classorg.eclipse.xtext.validation.AbstractDeclarativeValidator
-
warning
protected void warning(String message, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature feature, String code, String... issueData)
- Overrides:
warning
in classorg.eclipse.xtext.validation.AbstractDeclarativeValidator
-
isResponsible
protected boolean isResponsible(Map<Object,Object> context, org.eclipse.emf.ecore.EObject eObject)
- Overrides:
isResponsible
in classorg.eclipse.xtext.validation.AbstractInjectableValidator
-
checkIsFromCurrentlyCheckedResource
protected void checkIsFromCurrentlyCheckedResource(org.eclipse.emf.ecore.EObject object)
- Overrides:
checkIsFromCurrentlyCheckedResource
in classorg.eclipse.xtext.validation.AbstractDeclarativeValidator
-
-