Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.ConstStringValue


  }

  protected static void addConstant(Map<StringValue,Value> map,
                                    String name, Value value)
  {
    map.put(new ConstStringValue(name), value);
  }
View Full Code Here


  }

  protected static void addConstant(Map<StringValue,Value> map,
                                    String name, long value)
  {
    map.put(new ConstStringValue(name), LongValue.create(value));
  }
View Full Code Here

  }

  protected static void addConstant(Map<StringValue,Value> map,
                             String name, String value)
  {
    map.put(new ConstStringValue(name), StringValue.create(value));
  }
View Full Code Here

   * Adds a value
   */
  public void addVar(String name, Expr value, FieldVisibility visibility)
  {
    // XXX: i18n
    _cl.addValue(new ConstStringValue(name), value, visibility);
  }
View Full Code Here

                     Expr value,
                     FieldVisibility visibility,
                     String comment)
  {
    // XXX: i18n
    _cl.addValue(new ConstStringValue(name), value, visibility, comment);
  }
View Full Code Here

   * Adds a static value
   */
  public void addStaticVar(String name, Expr value)
  {
    // XXX: i18n
    _cl.addStaticValue(new ConstStringValue(name), value, null);
  }
View Full Code Here

   * Adds a static value
   */
  public void addStaticVar(String name, Expr value, String comment)
  {
    // XXX: i18n
    _cl.addStaticValue(new ConstStringValue(name), value, comment);
  }
View Full Code Here

      if (ch != ')')
        throw error(L.l("expected ')'"));

      String name = sb.toString();
     
      Integer v = _groupNameReverseMap.get(new ConstStringValue(name));

      if (v != null) {
        RegexpNode next = new RegexpNode.GroupRef(v);
     
        return concat(tail, parseRec(pattern, next));
View Full Code Here

  {
    // php/3j12
    if (isUnicodeSemantics())
      return getConstantId(new UnicodeBuilderValue(name));
    else
      return getConstantId(new ConstStringValue(name));
  }
View Full Code Here

  public StringValue createString(String name)
  {
    StringValue value = _stringMap.get(name);

    if (value == null) {
      value = new ConstStringValue(name);

      _stringMap.put(name, value);
    }

    return value;
View Full Code Here

TOP

Related Classes of com.caucho.quercus.env.ConstStringValue

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.