Class ConstructorExpressions
java.lang.Object
com.dassault_systemes.modeler.kerml.model.ConstructorExpressions
Utility class to work with
ConstructorExpression-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstructorExpressioncreateConstructorExpression(Type instantiatedType) Creates a newConstructorExpressionfor the given instantiated type.getConstructorExpressionInstantiatedTypeFeature(Type instantiatedType) Returns the public features of the instantiated type that participate in constructor expressions.static booleanisResultOfConstructorExpression(Feature feature) Checks whether the given feature is the result feature of aConstructorExpression.
-
Constructor Details
-
ConstructorExpressions
public ConstructorExpressions()
-
-
Method Details
-
createConstructorExpression
Creates a newConstructorExpressionfor the given instantiated type. The instantiated type is assigned, and a return parameter is created.- Parameters:
instantiatedType- the type being constructed- Returns:
- created constructor expression
-
getConstructorExpressionInstantiatedTypeFeature
Returns the public features of the instantiated type that participate in constructor expressions. These are the features owned throughFeatureMembershipwithVisibilityKind.PUBLIC.- Parameters:
instantiatedType- the type being constructed- Returns:
- list of public features of the instantiated type
-
isResultOfConstructorExpression
Checks whether the given feature is the result feature of aConstructorExpression. A feature is considered a constructor result if it is owned by aReturnParameterMembershipwhose owning type is a constructor expression.- Parameters:
feature- the feature to check- Returns:
- true if the feature is the result of a constructor expression
-