Examples of toJavaObject()


Examples of com.caucho.quercus.env.Value.toJavaObject()

    Value eventTypeValue = env.getGlobalValue("_quercus_bam_event_type");

    if (eventTypeValue == null)
      return BooleanValue.FALSE;

    BamEventType eventType = (BamEventType) eventTypeValue.toJavaObject();

    Value to = env.getGlobalValue("_quercus_bam_to");
    Value from = env.getGlobalValue("_quercus_bam_from");
    Value value = env.getGlobalValue("_quercus_bam_value");
View Full Code Here

Examples of com.caucho.quercus.env.Value.toJavaObject()

        if (paramV.equals(UnsetValue.UNSET)) {
          env.warning(L.l("Not all parameters are bound"));
          return false;
        }

        Object object = paramV.toJavaObject();

        setObject(i+1, object);
      }

      return executeStatement();
View Full Code Here

Examples of com.caucho.quercus.env.Value.toJavaObject()

      Value resultV = _program.execute(env);
     
      Object result = null;
      if (resultV != null)
        result = resultV.toJavaObject();

      out.flushBuffer();
      out.free();

      return result;
View Full Code Here

Examples of com.caucho.quercus.env.Value.toJavaObject()

     
      try {
        Value value = program.execute(env);
       
        if (value != null)
          result = value.toJavaObject();
      }
      catch (QuercusExitException e) {
        //php/2148
      }
     
View Full Code Here

Examples of com.ibm.jscript.types.FBSValue.toJavaObject()

    private Object[] toJavaArguments(final Method crystal, final FBSValueVector vec) throws InterpretException {
      Object[] result = new Object[vec.size()];
      Class<?>[] params = crystal.getParameterTypes();
      for (int i = 0; i < vec.size(); i++) {
        FBSValue val = vec.get(i);
        result[i] = val.toJavaObject(params[i]);
      }
      return result;
    }

    /**
 
View Full Code Here

Examples of com.jacob.com.Variant.toJavaObject()

      Variant oneParameterObject = targetParameters[parameterIndex];
      if (oneParameterObject == null) {
        parametersAsJavaObjects[parameterIndex] = null;
      } else {
        try {
          parametersAsJavaObjects[parameterIndex] = oneParameterObject
              .toJavaObject();
        } catch (NotImplementedException nie) {
          throw new IllegalArgumentException(
              "Can't convert parameter " + parameterIndex
                  + " type " + oneParameterObject.getvt()
View Full Code Here

Examples of com.restfb.DefaultJsonMapper.toJavaObject()

    // Make the API call
    JsonObject results = facebookClient.fetchObjects(ids, JsonObject.class);

    // Pull out JSON data by key and map each type by hand.
    JsonMapper jsonMapper = new DefaultJsonMapper();
    User user = jsonMapper.toJavaObject(results.getString("btaylor"), User.class);
    Url url = jsonMapper.toJavaObject(results.getString("http://www.imdb.com/title/tt0117500/"), Url.class);

    out.println("User is " + user);
    out.println("URL is " + url);
  }
View Full Code Here

Examples of com.restfb.DefaultJsonMapper.toJavaObject()

    JsonObject results = facebookClient.fetchObjects(ids, JsonObject.class);

    // Pull out JSON data by key and map each type by hand.
    JsonMapper jsonMapper = new DefaultJsonMapper();
    User user = jsonMapper.toJavaObject(results.getString("btaylor"), User.class);
    Url url = jsonMapper.toJavaObject(results.getString("http://www.imdb.com/title/tt0117500/"), Url.class);

    out.println("User is " + user);
    out.println("URL is " + url);
  }
View Full Code Here

Examples of com.restfb.DefaultJsonMapper.toJavaObject()

    // Make the API call
    JsonObject results = facebookClient.fetchObjects(ids, JsonObject.class);

    // Pull out JSON data by key and map each type by hand.
    JsonMapper jsonMapper = new DefaultJsonMapper();
    User user = jsonMapper.toJavaObject(results.getString("btaylor"), User.class);
    Url url = jsonMapper.toJavaObject(results.getString("http://www.imdb.com/title/tt0117500/"), Url.class);

    out.println("User is " + user);
    out.println("URL is " + url);
  }
View Full Code Here

Examples of com.restfb.DefaultJsonMapper.toJavaObject()

    JsonObject results = facebookClient.fetchObjects(ids, JsonObject.class);

    // Pull out JSON data by key and map each type by hand.
    JsonMapper jsonMapper = new DefaultJsonMapper();
    User user = jsonMapper.toJavaObject(results.getString("btaylor"), User.class);
    Url url = jsonMapper.toJavaObject(results.getString("http://www.imdb.com/title/tt0117500/"), Url.class);

    out.println("User is " + user);
    out.println("URL is " + url);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.