Class AttachedConstraint

    • Constructor Detail

      • AttachedConstraint

        public AttachedConstraint​(ConstraintSyntaxTree consSyntax,
                                  IDatatype type,
                                  IModelElement parent)
                           throws CSTSemanticException
        Creates a new constraint from an already parsed syntax tree.
        Parameters:
        consSyntax - the constraint syntax tree
        type - the type this constraint is attached to
        parent - the object, in which this specific one is embedded
        Throws:
        CSTSemanticException - in case that the constraint semantics cannot be resolved or that the specified constraint does not evaluate to a boolean expression
    • Method Detail

      • getAttachedTo

        public java.lang.Object getAttachedTo()
        Description copied from class: Constraint
        Returns the element, e.g., type, the constraint is attached to. Reasoner may return specialized values here.
        Overrides:
        getAttachedTo in class Constraint
        Returns:
        the attached object (null always)