Package org.nfunk.jep

Examples of org.nfunk.jep.SymbolTable


        {
            jep.setAllowUndeclared(true);
            jep.parseExpression(_expression);

            ArrayList<String> var = new ArrayList<String>();
            SymbolTable tab = jep.getSymbolTable();
            if (tab.get("x") != null)
                var.add("x");
            for (int i=0; i<10; i++)
                if (tab.get("x"+i) != null)
                    var.add("x"+i);
            if (tab.get("y") != null)
                var.add("y");
            for (int i=0; i<10; i++)
                if (tab.get("y"+i) != null)
                    var.add("y"+i);
            if (tab.get("z") != null)
                var.add("z");
            for (int i=0; i<10; i++)
                if (tab.get("z"+i) != null)
                    var.add("z"+i);
            variables = new String[var.size()];
            var.toArray(variables);
        }
        else
View Full Code Here

TOP

Related Classes of org.nfunk.jep.SymbolTable

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.