Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.StringBuilderValue


      String value = (String) _cache.get(key.toString());

      if (value == null)
        return NullValue.NULL;

      return VariableModule.unserialize(env, new StringBuilderValue(value));
    }
View Full Code Here


      String name = sb.toString();

      int group = _nGroup++;

      _groupNameMap.put(group, new StringBuilderValue(name));
      _groupNameReverseMap.put(new StringBuilderValue(name), group);

      return parseGroup(pattern, tail, group, _flags);
    }
    else
      throw error(L.l("Expected '(?:P=name' or '(?:P<name' for named group"));
View Full Code Here

      String name = sb.toString();

      int group = _nGroup++;

      _groupNameMap.put(group, new StringBuilderValue(name));
      _groupNameReverseMap.put(new StringBuilderValue(name), group);

      return parseGroup(pattern, tail, group, _flags);
    }
    else
      throw error(L.l("Expected '(?:P=name' or '(?:P<name' for named group"));
View Full Code Here

      String value = (String) _cache.get(key.toString());

      if (value == null)
        return NullValue.NULL;

      return VariableModule.unserialize(env, new StringBuilderValue(value));
    }
View Full Code Here

  private static void entity(ArrayValue array, StringValue []map,
                             ArrayValue revMap, int ch, String entity)
  {
    // XXX: i18n and optimize static variables usage
    array.put("" + (char) ch, entity);
    StringValue entityValue = new StringBuilderValue(entity);
    map[ch & 0xffff] = entityValue;
    revMap.put(entityValue, LongValue.create(ch));
  }
View Full Code Here

      if (_persistentStore != null) {
        String encoded = (String) _persistentStore.get(session.getId());

        if (encoded != null) {
          session.decode(env, new StringBuilderValue(encoded));
        }
      }
     
      if (session.load()) {
        session.setAccess(now);
View Full Code Here

  /**
   * Returns true for literal
   */
  public Value evalConstant()
  {
    return new StringBuilderValue(_var);
  }
View Full Code Here

  {
    _className = className;
   
    _varName = varName;
   
    _prefix = new StringBuilderValue(_className).append("::");
  }
View Full Code Here

    if (buffer == null)
      return NullValue.NULL;
    else if (env.isUnicodeSemantics())
      return new UnicodeBuilderValue(buffer);
    else
      return new StringBuilderValue(buffer);
  }
View Full Code Here

  /**
   * Returns true for literal
   */
  public Value evalConstant()
  {
    return new StringBuilderValue(_var);
  }
View Full Code Here

TOP

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

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.