Exemplo n.º 1
0
    public override Object Clone()
    {
        LetExpImpl theClone = (LetExpImpl)base.Clone();

        theClone.variable = (VariableDeclaration)variable.Clone();
        theClone.inE      = (OclExpression)inE.Clone();

        theClone.variable.setLetExp(theClone);
        theClone.inE.setLetExp(theClone);

        return(theClone);
    }
Exemplo n.º 2
0
        /* (non-Javadoc)
         * @see br.cos.ufrj.lens.odyssey.tools.psw.metamodels.ocl20.Factory#createLetExp(List<object>, br.cos.ufrj.lens.odyssey.tools.psw.metamodels.OclExpression)
         */
        public LetExp createLetExp(
            VariableDeclaration variable,
            OclExpression expression)
        {
            LetExp exp = new LetExpImpl();

            exp.setFactory(this);

            exp.setVariable(variable);
            exp.setIn(expression);

            variable.setLetExp(exp);
            ((OclExpressionImpl)expression).setLetExp(exp);

            exp.setType(expression.getType());

            return(exp);
        }