Package reportgen.math.reference.operator.variants.binary

Examples of reportgen.math.reference.operator.variants.binary.MathOperatorBinary$Pair


        right.appendToQuery(mql, model);
    }

    @Override
    public Class getCls() throws ReportException {
        MathOperatorBinary binary = (MathOperatorBinary) operator.getRef();
        return binary.checkAvailiable(left.getCls(), right.getCls());
    }
View Full Code Here


        return binary.checkAvailiable(left.getCls(), right.getCls());
    }

    @Override
    public Object getValue(Map constants) throws ReportException {
        MathOperatorBinary binary = (MathOperatorBinary) operator.getRef();
        Object leftValue = left.getValue(constants);
        Object rightValue = right.getValue(constants);
        Object result = binary.getValue(leftValue, rightValue);
        return result;
    }
View Full Code Here

    }

    @Override
    public void validate() throws ReportException {
        operator.validate();
        MathOperatorBinary bin = (MathOperatorBinary) operator.getRef();
        bin.checkAvailiable(left.getCls(), right.getCls());
    }
View Full Code Here

            Object express1 = calcstack.pop();
            Object express2 = calcstack.pop();
            if (express2 instanceof MathExpressionOperatorRef) {
                MathExpressionOperatorRef operator = (MathExpressionOperatorRef) express2;
                Class op2Class = getExpressionClass(express1);
                MathOperatorBinary opcode = (MathOperatorBinary) operator.getRef();
                eax = opcode.checkAvailiable(eax, op2Class);
            } else {
                MathExpressionOperatorRef operator = (MathExpressionOperatorRef) calcstack.pop();
                Class op1Class = getExpressionClass(express1);
                Class op2Class = getExpressionClass(express2);
                MathOperatorBinary opcode = (MathOperatorBinary) operator.getRef();
                Class res = opcode.checkAvailiable(op1Class, op2Class);
                calcstack.push(res);
            }
        }
        return eax;
    }
View Full Code Here

            Object express1 = calcstack.pop();
            Object express2 = calcstack.pop();
            if (express2 instanceof MathExpressionOperatorRef) {
                MathExpressionOperatorRef operator = (MathExpressionOperatorRef) express2;
                Object op2Value = getExpressionValue(express1, constants);
                MathOperatorBinary opcode = (MathOperatorBinary) operator.getRef();
                eax = opcode.getValue(eax, op2Value);
            } else {
                MathExpressionOperatorRef operator = (MathExpressionOperatorRef) calcstack.pop();
                Object op1Value = getExpressionValue(express1, constants);
                Object op2Value = getExpressionValue(express2, constants);
                MathOperatorBinary opcode = (MathOperatorBinary) operator.getRef();
                Object res = opcode.getValue(op1Value, op2Value);
                calcstack.push(res);
            }
        }

        return eax;
View Full Code Here

TOP

Related Classes of reportgen.math.reference.operator.variants.binary.MathOperatorBinary$Pair

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.