Package org.lilystudio.smarty4j.expression

Examples of org.lilystudio.smarty4j.expression.StringExpression


      }
      default:
        // 寻找成对的字符串标识符
        if (d == c) {
          if (exp == null) {
            words[wordSize] = new StringExpression(s.toString());
          } else {
            exp.add(s.toString());
            words[wordSize] = exp;
          }
          break quotation;
View Full Code Here


            exp = (IExpression) words[wordSize];
          } else if (!Character.isJavaIdentifierStart(c)) {
            break loop;
          } else {
            start = findIdentifier(line, start + 1, end, words, wordSize);
            exp = new StringExpression((String) words[wordSize]);
          }
          variable.add(new MapExtended(exp));
          continue;
        }
      }
View Full Code Here

   *
   * @param key
   *          关键字表达式
   */
  public MapExtended(String key) {
    this(new StringExpression(key));
  }
View Full Code Here

              || "off".equals(word)) {
            value = new FalseCheck();
          } else if ("null".equals(word)) {
            value = new NullExpression();
          } else if (word instanceof String) {
            value = new StringExpression((String) word);
          } else {
            throw new ParseException("不能识别的函数参数值");
          }

          if (index + 3 < wordSize && words[index + 3] == Operation.C_B_OR) {
View Full Code Here

    expressions[0] = getParameter(0);
    expressions[1] = getParameter(1);

    int i = 2;
    for (Entry<String, IExpression> entry : fields.entrySet()) {
      expressions[i] = new StringExpression(entry.getKey());
      expressions[i + 1] = entry.getValue();
      i += 2;
    }

    setParameters(expressions);
View Full Code Here

TOP

Related Classes of org.lilystudio.smarty4j.expression.StringExpression

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.