Package com.google.collide.client.code.debugging.DebuggerApiTypes

Examples of com.google.collide.client.code.debugging.DebuggerApiTypes.RemoteObject


    assertTrue(DebuggerApiUtils.isNonFiniteNumber(NEGATIVE_INFINITY_REMOTE_OBJECT));
    assertFalse(DebuggerApiUtils.isNonFiniteNumber(NULL_REMOTE_OBJECT));
    assertFalse(DebuggerApiUtils.isNonFiniteNumber(UNDEFINED_REMOTE_OBJECT));
    assertFalse(DebuggerApiUtils.isNonFiniteNumber(BOOLEAN_TRUE_REMOTE_OBJECT));

    final RemoteObject zero = new RemoteObjectImpl("0", RemoteObjectType.NUMBER);
    final RemoteObject nonZero = new RemoteObjectImpl("123", RemoteObjectType.NUMBER);
    assertFalse(DebuggerApiUtils.isNonFiniteNumber(zero));
    assertFalse(DebuggerApiUtils.isNonFiniteNumber(nonZero));
  }
View Full Code Here


      return null;
    }

    final String expression = request.getStringField("expression");
    final String callFrameId = request.getStringField("callFrameId");
    final RemoteObject evaluationResult = parseRemoteObject((Jso) result.getObjectField("result"));
    final boolean wasThrown = result.getFieldCastedToBoolean("wasThrown");

    return new OnEvaluateExpressionResponse() {

      @Override
View Full Code Here

  private static PropertyDescriptor parsePropertyDescriptor(final Jso json) {
    if (json == null) {
      return null;
    }

    final RemoteObject remoteObject = parseRemoteObject((Jso) json.getObjectField("value"));
    final RemoteObject getter = parseRemoteObject((Jso) json.getObjectField("get"));
    final RemoteObject setter = parseRemoteObject((Jso) json.getObjectField("set"));

    return new PropertyDescriptor() {

      @Override
      public String getName() {
View Full Code Here

    final String functionName = json.getStringField("functionName");
    final String callFrameId = json.getStringField("callFrameId");
    final Location location = parseLocation((Jso) json.getObjectField("location"));
    final JsonArray<Scope> scopeChain = parseScopeChain(json.getArrayField("scopeChain"));
    final RemoteObject thisObject = parseRemoteObject((Jso) json.getObjectField("this"));

    return new CallFrame() {

      @Override
      public String getFunctionName() {
View Full Code Here

  private static Scope parseScope(JsonObject json) {
    if (json == null) {
      return null;
    }

    final RemoteObject object = parseRemoteObject((Jso) json.getObjectField("object"));
    final ScopeType scopeType = parseScopeType(json.getStringField("type"));

    return new Scope() {

      @Override
View Full Code Here

  private static JsonArray<RemoteObject> parseRemoteObjectArray(JsonArray<JsonObject> jsonArray) {
    JsonArray<RemoteObject> result = JsonCollections.createArray();
    if (jsonArray != null) {
      for (int i = 0, n = jsonArray.size(); i < n; ++i) {
        RemoteObject remoteObject = parseRemoteObject((Jso) jsonArray.get(i));
        if (remoteObject != null) {
          result.add(remoteObject);
        }
      }
    }
View Full Code Here

    final RemoteObjectSubType remoteObjectSubType = parseRemoteObjectSubType(
        json.getStringField("subtype"));
    final String description = StringUtils.ensureNotEmpty(json.getStringField("description"),
        json.getFieldCastedToString("value"));

    return new RemoteObject() {

      @Override
      public String getDescription() {
        return description;
      }
View Full Code Here

TOP

Related Classes of com.google.collide.client.code.debugging.DebuggerApiTypes.RemoteObject

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.