Package jsynoptic.parser

Examples of jsynoptic.parser.ExpressionParser.addVariable()


            private void addVariable(ExpressionParser ep, Object object) {
                if (object==null) return;
                if (!(object instanceof DataSource)) return;
                String alias = DataInfo.getAlias(object);
                if (alias!=null) ep.addVariable(new VariableAssociation((DataSource)object, alias));
                else ep.addVariable(new VariableAssociation((DataSource)object, DataInfo.getLabel(object)));
            }
        });

/*        delExp.addActionListener(new ActionListener() {
View Full Code Here


            private void addVariable(ExpressionParser ep, Object object) {
                if (object==null) return;
                if (!(object instanceof DataSource)) return;
                String alias = DataInfo.getAlias(object);
                if (alias!=null) ep.addVariable(new VariableAssociation((DataSource)object, alias));
                else ep.addVariable(new VariableAssociation((DataSource)object, DataInfo.getLabel(object)));
            }
        });

/*        delExp.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
View Full Code Here

        try {
            ExpressionParser ep = new ExpressionParser(expression);
            // Add the data sources as variables, once conflicts are resolved
            for (int i = 0; i < clm.size(); ++i) {
                VariableConflict vc = (VariableConflict) clm.get(i);
                ep.addVariable(new VariableAssociation(vc.ds, vc.var));
            }
            // Add known plugins => may bring in more mathematical functions
            for (Iterator it = Run.plugins.iterator(); it.hasNext();) {
                ep.addClass(it.next().getClass());
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.