Class OperationBuilder
java.lang.Object
org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
org.somox.analyzer.simplemodelanalyzer.builder.OperationBuilder
Builder for operations, parameters, message types, and data types. Keeps the source code
decorator updated.
-
Field Summary
Fields inherited from class org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
analysisResult, astModel, somoxConfiguration
-
Constructor Summary
ConstructorDescriptionOperationBuilder
(Root gastModel, SoMoXConfiguration somoxConfiguration, AnalysisResult analysisResult) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createOperations
(org.emftext.language.java.classifiers.ConcreteClassifier implementationClass, org.emftext.language.java.classifiers.ConcreteClassifier interfaceClass, org.palladiosimulator.pcm.repository.OperationInterface interf) org.palladiosimulator.pcm.repository.DataType
getType
(org.emftext.language.java.types.Type gastType, org.palladiosimulator.pcm.repository.Repository repository, org.emftext.language.java.arrays.ArrayTypeable arrayTypeable) Data type creation or look up for existing data types.org.palladiosimulator.pcm.repository.DataType
returnDefaultDataType
(org.emftext.language.java.commons.Commentable type, org.palladiosimulator.pcm.repository.Repository repository)
-
Constructor Details
-
OperationBuilder
public OperationBuilder(Root gastModel, SoMoXConfiguration somoxConfiguration, AnalysisResult analysisResult)
-
-
Method Details
-
createOperations
public void createOperations(org.emftext.language.java.classifiers.ConcreteClassifier implementationClass, org.emftext.language.java.classifiers.ConcreteClassifier interfaceClass, org.palladiosimulator.pcm.repository.OperationInterface interf) -
getType
public org.palladiosimulator.pcm.repository.DataType getType(org.emftext.language.java.types.Type gastType, org.palladiosimulator.pcm.repository.Repository repository, org.emftext.language.java.arrays.ArrayTypeable arrayTypeable) Data type creation or look up for existing data types.- Parameters:
typeName
- type name to createrepository
- repository containing all present typesarrayDimensions
- array dimensions for the type- Returns:
- a new data type for non-existing ones; the existing instance else
-
returnDefaultDataType
public org.palladiosimulator.pcm.repository.DataType returnDefaultDataType(org.emftext.language.java.commons.Commentable type, org.palladiosimulator.pcm.repository.Repository repository)
-