Class DerivedTypeMetaCompoundAccessVisitor

  • All Implemented Interfaces:
    net.ssehub.easy.varModel.cst.IConstraintTreeVisitor

    class DerivedTypeMetaCompoundAccessVisitor
    extends net.ssehub.easy.varModel.cst.AbstractConstraintTreeVisitor
    A checking visitor for illegal compound accesses in declaration of derived data types.
    Author:
    Holger Eichelberger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.emf.ecore.EObject cause  
      private org.eclipse.emf.ecore.EStructuralFeature feature  
      private net.ssehub.easy.dslCore.translation.MessageReceiver receiver  
    • Constructor Summary

      Constructors 
      Constructor Description
      DerivedTypeMetaCompoundAccessVisitor​(net.ssehub.easy.dslCore.translation.MessageReceiver receiver)
      Creates a visitor bound to a given message receiver.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void clear()
      Clears this visitor for reuse on the initially given receiver.
      (package private) void setContext​(org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature feature)
      Defines the context for emitting errors.
      void visitCompoundAccess​(net.ssehub.easy.varModel.cst.CompoundAccess access)  
      • Methods inherited from class net.ssehub.easy.varModel.cst.AbstractConstraintTreeVisitor

        visitAnnotationVariable, visitBlockExpression, visitComment, visitCompoundInitializer, visitConstantValue, visitContainerInitializer, visitContainerOperationCall, visitDeferInitExpression, visitIfThen, visitLet, visitMultiAndExpression, visitOclFeatureCall, visitParenthesis, visitSelf, visitUnresolvedExpression, visitVariable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • receiver

        private net.ssehub.easy.dslCore.translation.MessageReceiver receiver
      • cause

        private org.eclipse.emf.ecore.EObject cause
      • feature

        private org.eclipse.emf.ecore.EStructuralFeature feature
    • Constructor Detail

      • DerivedTypeMetaCompoundAccessVisitor

        DerivedTypeMetaCompoundAccessVisitor​(net.ssehub.easy.dslCore.translation.MessageReceiver receiver)
        Creates a visitor bound to a given message receiver.
        Parameters:
        receiver - the receiver
    • Method Detail

      • setContext

        void setContext​(org.eclipse.emf.ecore.EObject cause,
                        org.eclipse.emf.ecore.EStructuralFeature feature)
        Defines the context for emitting errors. Call before visiting.
        Parameters:
        cause - the cause
        feature - the structural feature
      • clear

        void clear()
        Clears this visitor for reuse on the initially given receiver.
      • visitCompoundAccess

        public void visitCompoundAccess​(net.ssehub.easy.varModel.cst.CompoundAccess access)
        Specified by:
        visitCompoundAccess in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitor
        Overrides:
        visitCompoundAccess in class net.ssehub.easy.varModel.cst.AbstractConstraintTreeVisitor