コード例 #1
0
ファイル: ListCommand.java プロジェクト: crawley/pep
 public void command(CLI cli) {
   Scope scope = Scope.ROOT_SCOPE;
   cli.getOut().println("Root scope: ");
   for (Map.Entry<String, List<Declaration>> scopeEntry : scope) {
     cli.getOut().println(scopeEntry.getKey() + ": ");
     for (Declaration decl : scopeEntry.getValue()) {
       cli.getOut()
           .println("        " + decl.getKind() + " " + decl.getName() + " (" + decl + ")");
     }
   }
 }