Exemple #1
0
  public String toStringScopeNames() {
    StringBuilder sb = new StringBuilder();
    sb.append("Scopes:\n");

    int i = 0;
    for (Scope scope = this; scope != null; scope = scope.getParent())
      sb.append("\t" + (i++) + ": " + scope.getScopeName() + "\n");

    return sb.toString();
  }