Package com.CompPad.model

Examples of com.CompPad.model.Expression2


        name = xNxEOS.getName();

        Logger.getLogger("com.CompPad").log(Level.FINE,"    Creating OOOExpression from embedded object - " + name);
        /* Create new expression and add to CompPad Document.
         Need to pass information to make this Comparable!!! */
        expression = new Expression2(this.getFormulaString(),
                this.oooDocument.getCompPadDocument().getOutputListener(), this);
        oooDocument.getCompPadDocument().addExpression(expression);
        /* Add  listener to expression */
//        expression.setResultListener (oooResult.listener);
//        expression.setErrorListener(oooError.listener);
View Full Code Here


    public Shell() throws Exception {
        evaluator = new Evaluator();

        /* Create one expression which will be used to evaluate formulas */

        shellExpression = new Expression2("", outputListener);
        shellExpression.addListener(errorListener);
    }
View Full Code Here

    }
    public Object evaluate(String argFormulaStr) throws Exception{
        /* No output unless it's an output expression */
        shellOutputObj = null;

        shellExpression=new Expression2(argFormulaStr,outputListener,null);
        shellExpression.addListener(errorListener);
        System.out.println(argFormulaStr);
        shellExpression.evaluate(evaluator);
        return shellOutputObj;
    }
View Full Code Here

TOP

Related Classes of com.CompPad.model.Expression2

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.