Package org.lilystudio.smarty4j.expression.check

Examples of org.lilystudio.smarty4j.expression.check.TrueCheck


                // 识别参数类型
                if (o instanceof IExpression) {
                  values.add((IExpression) o);
                } else if (o instanceof String) {
                  if ("true".equals(o)) {
                    values.add(new TrueCheck());
                  } else if ("false".equals(o)) {
                    values.add(new FalseCheck());
                  } else {
                    throw new ParseException("不能识别的保留字");
                  }
View Full Code Here


            value = new ConstInteger((Integer) word);
          } else if (word instanceof Double) {
            value = new ConstDouble((Double) word);
          } else if ("true".equals(word) || "yes".equals(word)
              || "on".equals(word)) {
            value = new TrueCheck();
          } else if ("false".equals(word) || "no".equals(word)
              || "off".equals(word)) {
            value = new FalseCheck();
          } else if ("null".equals(word)) {
            value = new NullExpression();
View Full Code Here

TOP

Related Classes of org.lilystudio.smarty4j.expression.check.TrueCheck

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.