示例#1
0
 // Visualize an object
 // Taken: name
 //        type
 //        value (or wrapper, if primitive type)
 //
 static void visualize(String name, Class type, Object value) {
   SystemOut.println("===");
   try {
     vis(name, type, value, "");
   } catch (Exception e) {
     e.printStackTrace(System.out);
   }
 }
示例#2
0
  private static void prt(String s) {
    // !!TODO: improve readability by changing every occurrence of "java.*.yyy" to "yyy"

    SystemOut.println(s);
  }
示例#3
0
 public static void runTest() {
   SystemOut.println("TestReflection");
   Foo foo = new Foo();
   Visualizer.visualize("foo", foo.getClass(), foo);
 }