Package net.ssehub.easy.varModel.model
Class AnnotationVisitor
java.lang.Object
net.ssehub.easy.varModel.model.AnnotationVisitor
- Direct Known Subclasses:
DecisionVariable.InitializationAnnotationVisitor
Visits a certain set of annotation declarations and assignments (applying to a given scope) and allows processing
all of them.
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToScope(Set<Object> scope, IModelElement element, IAttributeAccess access) Addselementtoscopefor starting iteration ataccess.protected abstract voidprocessAttribute(Attribute attr) Processes an attribute.protected abstract voidProcesses an attribute assignment.voidvisitAnnotations(IAttributeAccess access) Creates a new decision variable representing a specific decision.private voidvisitAnnotations(IAttributeAccess access, Set<Object> scope) Visits all annotations inaccess.
-
Constructor Details
-
AnnotationVisitor
public AnnotationVisitor()
-
-
Method Details
-
processAttributeAssignment
Processes an attribute assignment.- Parameters:
assng- the assignment to be processed- Throws:
IvmlException- in case of processing problems
-
processAttribute
Processes an attribute.- Parameters:
attr- the attribute to process- Throws:
IvmlException- in case of processing problems
-
addToScope
Addselementtoscopefor starting iteration ataccess. May be used to filter the scope. Called only for parents ofaccess.accessis included by default- Parameters:
scope- the scope elementselement- the element to be addedaccess- the attribute access where to start at
-
visitAnnotations
Creates a new decision variable representing a specific decision.- Parameters:
access- the element declaring the attributes- Throws:
IvmlException- in case of processing problems
-
visitAnnotations
Visits all annotations inaccess.- Parameters:
access- the annotations to visitscope- valid elements an annotation may be attached to- Throws:
IvmlException- in case of processing problems
-