Class InstantiationExpressions

java.lang.Object
com.dassault_systemes.modeler.kerml.model.InstantiationExpressions

@OpenApiAll public class InstantiationExpressions extends Object
Utility class to work with InstantiationExpression
  • Constructor Details

    • InstantiationExpressions

      public InstantiationExpressions()
  • Method Details

    • setInstantiatedType

      public static void setInstantiatedType(InstantiationExpression expression, @CheckForNull Type instantiatedType)
      Sets the instantiated type of the given instantiation expression. Creates or reuses an appropriate membership to store the reference.
      Parameters:
      expression - the instantiation expression to modify
      instantiatedType - the type being instantiated, or null to clear
    • getInstantiatedTypeMembership

      @CheckForNull public static Membership getInstantiatedTypeMembership(InstantiationExpression expression)
      Returns the membership that stores the instantiated type for the given instantiation expression.
      Parameters:
      expression - the instantiation expression
      Returns:
      membership holding the instantiated type, or null if none exists