Example #1
0
  /** Sets the field value. */
  @Override
  public Value putField(Env env, StringValue name, Value value) {
    Value oldValue = _classDef.putField(env, this, name, value);

    if (oldValue != null) return oldValue;
    else return NullValue.NULL;
  }
  /** Sets fields not specified by the value. */
  protected Value putFieldExt(Env env, StringValue name, Value value) {
    if (_object == null) {
      createJavaObject(env);
    }

    return _javaClassDef.putField(env, this, name, value);
  }