Package com.opera.core.systems.scope.protos.EcmascriptProtos

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.EvalResult


    if (response == null) {
      throw new ScopeException("Internal error while executing script");
    }

    EvalResult result = parseEvalData(response);

    Object parsed = parseEvalReply(result);
    if (parsed instanceof EcmascriptProtos.Object) {
      EcmascriptProtos.Object data = (EcmascriptProtos.Object) parsed;
      return new ScriptResult(data.getObjectID(), data.getClassName());
View Full Code Here


  public Object executeScript(String using, boolean responseExpected) {
    return executeScript(using, responseExpected, getRuntimeId());
  }

  private Object executeScript(String using, boolean responseExpected, int runtimeId) {
    EvalResult reply = eval(using, runtimeId);
    return responseExpected ? parseEvalReply(reply) : null;
  }
View Full Code Here

    EvalResult reply = eval(using, runtimeId);
    return responseExpected ? parseEvalReply(reply) : null;
  }

  public Integer getObject(String using) {
    EvalResult reply = eval(using);
    return (reply.getValue().getType().equals(Type.OBJECT)) ? reply.getValue().getObject()
        .getObjectID() : null;
  }
View Full Code Here

  }

  public Object callFunctionOnObject(String using, int objectId, boolean responseExpected) {
    Variable variable = buildVariable("locator", objectId);

    EvalResult reply = eval(using, variable);
    return responseExpected ? parseEvalReply(reply) : null;
  }
View Full Code Here

    return responseExpected ? parseEvalReply(reply) : null;
  }

  public Integer executeScriptOnObject(String using, int objectId) {
    Variable variable = buildVariable("locator", objectId);
    EvalResult reply = eval(using, variable);
    Object object = parseEvalReply(reply);

    if (object == null || !(object instanceof EcmascriptProtos.Object)) {
      return null;
    }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.protos.EcmascriptProtos.EvalResult

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.