Class DeclarationMapper
java.lang.Object
net.ssehub.easy.varModel.model.AbstractProjectVisitor
net.ssehub.easy.varModel.model.filter.AbstractDeclarationFinder
net.ssehub.easy.varModel.model.filter.DeclarationMapper
- All Implemented Interfaces:
ICustomDatatypeVisitor,IModelVisitor
This filter class searches all top level
DecisionVariableDeclarations and stores them into a Map.
The Map is in form of:
- Key: (Not qualified) Name of the
DecisionVariableDeclaration - Value: The
DecisionVariableDeclarationitself
- Author:
- El-Sharkawy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeclarationMapper(Project project, FilterType filterType) Sole constructor for this class. -
Method Summary
Modifier and TypeMethodDescriptionReturns a Hashmap of all top-levelDecisionVariableDeclarations.voidvisitAttributeAssignment(AttributeAssignment assignment) Visits an attribute assignment.voidVisits a compound access statement (may occur in freeze blocks.voidThis method is used for visiting a decision variable declaration.Methods inherited from class net.ssehub.easy.varModel.model.filter.AbstractDeclarationFinder
visitAttribute, visitComment, visitCompound, visitConstraint, visitDerivedDatatype, visitEnum, visitEnumLiteral, visitFreezeBlock, visitOperationDefinition, visitOrderedEnum, visitPartialEvaluationBlock, visitProjectInterface, visitReference, visitSequence, visitSetMethods inherited from class net.ssehub.easy.varModel.model.AbstractProjectVisitor
clear, getFilterType, getStartingProject, visitProject, visitProjectImport
-
Field Details
-
declarations
-
-
Constructor Details
-
DeclarationMapper
Sole constructor for this class.- Parameters:
project- The project where the visiting shall startfilterType- Specifies whether project imports shall be considered or not.
-
-
Method Details
-
getDeclarationMap
Returns a Hashmap of all top-levelDecisionVariableDeclarations. The Map is in form of:- Key: (Not qualified) Name of the
DecisionVariableDeclaration - Value: The
DecisionVariableDeclarationitself
- Returns:
- Hashmap of all top-level
DecisionVariableDeclarations, must not be null.
- Key: (Not qualified) Name of the
-
visitDecisionVariableDeclaration
Description copied from interface:IModelVisitorThis method is used for visiting a decision variable declaration.- Parameters:
decl- One declaration which should be visited.
-
visitAttributeAssignment
Description copied from interface:IModelVisitorVisits an attribute assignment.- Parameters:
assignment- the assignment to visit
-
visitCompoundAccessStatement
Description copied from interface:IModelVisitorVisits a compound access statement (may occur in freeze blocks.- Parameters:
access- the access statement
-