Package reportgen.math.reference.operator.variants.unary

Examples of reportgen.math.reference.operator.variants.unary.MathOperatorUnary


    @Override
    public void appendToQuery(SQLStream mql, Map model) throws ReportException {
        //mql.append("(");

        MathOperatorUnary opcode = (MathOperatorUnary) operator.getRef();
        if(opcode.operatorFirst()) {
            operator.appendToQuery(mql, model);
            operand.appendToQuery(mql, model);
        } else {
            operand.appendToQuery(mql, model);
            operator.appendToQuery(mql, model);
View Full Code Here


        //mql.append(")");
    }

    @Override
    public Class getCls() throws ReportException {
        MathOperatorUnary unary = (MathOperatorUnary) operator.getRef();
        return unary.checkAvailiable(operand.getCls());
    }
View Full Code Here

        return unary.checkAvailiable(operand.getCls());
    }

    @Override
    public Object getValue(Map constants) throws ReportException {
        MathOperatorUnary unary = (MathOperatorUnary) operator.getRef();
        return unary.getValue(operand.getValue(constants));
    }
View Full Code Here

        return operand.containsMissingVariables();
    }

    @Override
    public String toString() {
        MathOperatorUnary opcode = (MathOperatorUnary) operator.getRef();
        if(opcode.operatorFirst()) {
            return operator.toString() + operand.toString();
        }
        return operand.toString() + operator.toString();
    }
View Full Code Here

    @Override
    public void validate() throws ReportException {
        super.validate();
        operator.validate();
        operand.validate();
        MathOperatorUnary un = (MathOperatorUnary) operator.getRef();
        un.checkAvailiable(operand.getCls());
    }
View Full Code Here

TOP

Related Classes of reportgen.math.reference.operator.variants.unary.MathOperatorUnary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.