All Downloads are FREE. Search and download functionalities are using the official Maven repository.

functions.DefaultOperation.ext Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
extension java::GeneratorCommons;
extension java::Naming;

cached boolean isDefaultOperation(uml::Element element):
    element.isStereotypeApplied("DefaultOperation");
    
cached JMM::DefaultOperation asDefaultOperation(uml::Element element):
    (JMM::DefaultOperation) element;
    
cached String getParameterTypes(uml::Operation operation):
    operation.ownedParameter.select(e| e.isInputParameter() && e.isParameterSuppressed() == false).collect(e|e.name + " ");
    
cached boolean throwsNotYetImplementedException(uml::Operation operation):
    if operation.isDefaultOperation()
    then operation.asDefaultOperation().operationType.name == "THROW_NOT_YET_IMPLMENTED_EXCEPTION"
    else false;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy