Interface IEvlModule

    • Method Detail

      • getConstraints

        java.util.List<Constraint> getConstraints()
      • getDeclaredConstraintContexts

        java.util.List<ConstraintContext> getDeclaredConstraintContexts()
      • setUnsatisfiedConstraintFixer

        void setUnsatisfiedConstraintFixer​(IEvlFixer fixer)
      • getUnsatisfiedConstraintFixer

        IEvlFixer getUnsatisfiedConstraintFixer()
      • getConstraintContext

        default ConstraintContext getConstraintContext​(java.lang.String name)
        Searches for a ConstraintContext by the specified type name.
        Parameters:
        name - The name of the model element type.
        Returns:
        The first ConstraintContext matching the name, or null if not found.
        Since:
        1.6
      • getConstraint

        default Constraint getConstraint​(java.lang.String constraintName,
                                         java.lang.String contextName,
                                         java.lang.Object modelElement,
                                         ModuleElement ast)
                                  throws EolRuntimeException
        Finds a Constraint instance in this module based on the specified filters.
        Parameters:
        constraintName - The constraint name to search for (mandatory).
        contextName - The name of the model element type (ConstraintContext) that the constraint is declared in (optional).
        modelElement - A model element which the Constraint's context should be applicable to (optional).
        ast - The AST that is calling this operation (optional).
        Returns:
        A Constraint matching the specified criteria, or null if not found.
        Throws:
        EolRuntimeException - If there are problems finding the constraint from the specified parameters.
        EvlConstraintNotFoundException - If the constraint could not be found.
        Since:
        1.6