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

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


    // Render the Scope Variables pane.
    JsonArray<RemoteObjectNode> rootNodes = JsonCollections.createArray();

    JsonArray<Scope> scopeChain = callFrame.getScopeChain();
    for (int i = 0, n = scopeChain.size(); i < n; ++i) {
      Scope scope = scopeChain.get(i);
      String name = StringUtils.capitalizeFirstLetter(scope.getType().toString());
      RemoteObject remoteObject = scope.getObject();

      RemoteObjectNode.Builder scopeNodeBuilder = new RemoteObjectNode.Builder(name, remoteObject)
          .setOrderIndex(i)
          .setWritable(false)
          .setDeletable(false)
          .setTransient(scope.isTransient());

      // Append the call frame "this" object to the top scope.
      if (i == 0 && callFrame.getThis() != null) {
        RemoteObjectNode thisNode = new RemoteObjectNode.Builder("this", callFrame.getThis())
            .setWritable(false)
View Full Code Here


  private static JsonArray<Scope> parseScopeChain(JsonArray<JsonObject> jsonArray) {
    JsonArray<Scope> result = JsonCollections.createArray();
    if (jsonArray != null) {
      for (int i = 0, n = jsonArray.size(); i < n; ++i) {
        Scope scope = parseScope(jsonArray.get(i));
        if (scope != null) {
          result.add(scope);
        }
      }
    }
View Full Code Here

    }

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

    return new Scope() {

      @Override
      public RemoteObject getObject() {
        return object;
      }
View Full Code Here

TOP

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

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.