Class DerivedTypeMetaCompoundAccessVisitor
- java.lang.Object
-
- net.ssehub.easy.varModel.cst.AbstractConstraintTreeVisitor
-
- de.uni_hildesheim.sse.translation.DerivedTypeMetaCompoundAccessVisitor
-
- All Implemented Interfaces:
IConstraintTreeVisitor
class DerivedTypeMetaCompoundAccessVisitor extends 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.EObjectcauseprivate org.eclipse.emf.ecore.EStructuralFeaturefeatureprivate MessageReceiverreceiver
-
Constructor Summary
Constructors Constructor Description DerivedTypeMetaCompoundAccessVisitor(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) voidclear()Clears this visitor for reuse on the initially given receiver.(package private) voidsetContext(org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature feature)Defines the context for emitting errors.voidvisitCompoundAccess(CompoundAccess access)Visits a compound access node.-
Methods inherited from class net.ssehub.easy.varModel.cst.AbstractConstraintTreeVisitor
visitAnnotationVariable, visitBlockExpression, visitComment, visitCompoundInitializer, visitConstantValue, visitContainerInitializer, visitContainerOperationCall, visitIfThen, visitLet, visitMultiAndExpression, visitOclFeatureCall, visitParenthesis, visitSelf, visitUnresolvedExpression, visitVariable
-
-
-
-
Field Detail
-
receiver
private MessageReceiver receiver
-
cause
private org.eclipse.emf.ecore.EObject cause
-
feature
private org.eclipse.emf.ecore.EStructuralFeature feature
-
-
Constructor Detail
-
DerivedTypeMetaCompoundAccessVisitor
DerivedTypeMetaCompoundAccessVisitor(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 causefeature- the structural feature
-
clear
void clear()
Clears this visitor for reuse on the initially given receiver.
-
visitCompoundAccess
public void visitCompoundAccess(CompoundAccess access)
Description copied from interface:IConstraintTreeVisitorVisits a compound access node.- Specified by:
visitCompoundAccessin interfaceIConstraintTreeVisitor- Overrides:
visitCompoundAccessin classAbstractConstraintTreeVisitor- Parameters:
access- the compound access node
-
-