Package org.criticalfailure.torchlight.core.application.script

Examples of org.criticalfailure.torchlight.core.application.script.ScriptEngine.eval()


//            engine.put("value", new Boolean(value));
//        }

        try {
            logger.debug("evaluating script");
            Object ret = engine.eval(prop.getValidatorBody());
            logger.trace("ret: " + ret);
           
            result.setValid(Boolean.parseBoolean(String.valueOf(ret)));
            logger.trace("isValid: " + result.isValid());
            result.setReason("");
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.