Class BslJavaValidator

  • All Implemented Interfaces:
    org.eclipse.emf.ecore.EValidator, org.eclipse.xtext.validation.ValidationMessageAcceptor

    public class BslJavaValidator
    extends AbstractBslJavaValidator
    Validate BSL
    • Constructor Detail

      • BslJavaValidator

        public BslJavaValidator()
    • 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)
      • 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)
      • 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)
      • 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)
      • 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)
      • error

        protected void error​(String message,
                             org.eclipse.emf.ecore.EObject source,
                             org.eclipse.emf.ecore.EStructuralFeature feature,
                             String code,
                             String... issueData)
        Overrides:
        error in class org.eclipse.xtext.validation.AbstractDeclarativeValidator
      • error

        protected void error​(String message,
                             org.eclipse.emf.ecore.EObject source,
                             org.eclipse.emf.ecore.EStructuralFeature feature,
                             int index,
                             String code,
                             String... issueData)
        Overrides:
        error in class org.eclipse.xtext.validation.AbstractDeclarativeValidator
      • 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 class org.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 class org.eclipse.xtext.validation.AbstractDeclarativeValidator
      • isResponsible

        protected boolean isResponsible​(Map<Object,​Object> context,
                                        org.eclipse.emf.ecore.EObject eObject)
        Overrides:
        isResponsible in class org.eclipse.xtext.validation.AbstractInjectableValidator
      • checkIsFromCurrentlyCheckedResource

        protected void checkIsFromCurrentlyCheckedResource​(org.eclipse.emf.ecore.EObject object)
        Overrides:
        checkIsFromCurrentlyCheckedResource in class org.eclipse.xtext.validation.AbstractDeclarativeValidator