Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.QuercusClass$StaticField


  @Override
  public Value eval(Env env)
  {
    String className = _className.evalString(env);
   
    QuercusClass cl = env.findClass(className);

    if (cl == null) {
      env.error(getLocation(), L.l("no matching class {0}", _className));
    }
   
    int hash = _methodName.hashCodeCaseInsensitive();

    return cl.callMethod(env, env.getThis(),
                         _methodName, hash,
                         evalArgs(env, _args));
  }
View Full Code Here


    Value []args = evalArgs(env, _args);

    env.pushCall(this, NullValue.NULL, args);
   
    // php/0249
    QuercusClass oldCallingClass = env.setCallingClass(null);
   
    // XXX: qa/1d14 Value oldThis = env.setThis(UnsetValue.NULL);
    try {
      env.checkTimeout();
View Full Code Here

  @Override
  public Value eval(Env env)
  {
    String className = _className.evalString(env);
   
    QuercusClass qClass = env.getClass(className);
   
    StringValue varName = _varName.evalStringValue(env);
   
    return qClass.getStaticFieldValue(env, varName);
  }
View Full Code Here

  @Override
  public Var evalVar(Env env)
  {
    String className = _className.evalString(env);
   
    QuercusClass qClass = env.getClass(className);
   
    StringValue varName = _varName.evalStringValue(env);
   
    return qClass.getStaticFieldVar(env, varName);
  }
View Full Code Here

  @Override
  public Value evalAssignRef(Env env, Value value)
  {
    String className = _className.evalString(env);
   
    QuercusClass qClass = env.getClass(className);
   
    StringValue varName = _varName.evalStringValue(env);
   
    return qClass.setStaticFieldRef(env, varName, value);
  }
View Full Code Here

  @Override
  public Value eval(Env env)
  {
    String className = _className.evalString(env);
   
    QuercusClass cl = env.findClass(className);

    if (cl == null) {
      env.error(getLocation(), L.l("no matching class {0}", className));
    }

    StringValue methodName = _methodName.evalStringValue(env);
    int hash = methodName.hashCodeCaseInsensitive();
    Value []args = evalArgs(env, _args);
   
    return cl.callMethod(env, env.getThis(),
                         methodName, hash,
                         args);
  }
View Full Code Here

  @Override
  public Value eval(Env env)
  {
    String className = _className.evalString(env);

    QuercusClass qClass = env.getClass(className);
   
    return qClass.getStaticFieldValue(env, _varName);
  }
View Full Code Here

  @Override
  public Var evalVar(Env env)
  {
    String className = _className.evalString(env);

    QuercusClass qClass = env.getClass(className);
   
    return qClass.getStaticFieldVar(env, _varName);
  }
View Full Code Here

  @Override
  public Value evalAssignRef(Env env, Value value)
  {
    String className = _className.evalString(env);

    QuercusClass qClass = env.getClass(className);
   
    return qClass.setStaticFieldRef(env, _varName, value);
  }
View Full Code Here

   */
  @Override
  public Value eval(Env env)
  {
    Value qThis = env.getThis();
    QuercusClass qClass = qThis != null ? qThis.getQuercusClass() : null;
   
    if (qClass == null) {
      env.error(L.l("No calling class found for '{0}'", this));
     
      return NullValue.NULL;
    }
   
    return qClass.getStaticFieldValue(env, _varName);
  }
View Full Code Here

TOP

Related Classes of com.caucho.quercus.env.QuercusClass$StaticField

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.