Main { {{ static Cd_graph graph; static ClassGraph cg; static public void main(String args[]) throws Exception { cg = new ClassGraph(true, false); graph = Cd_graph.parse(System.in); graph.printSyntax(); } }} } Cd_graph { {{ void printSyntax() { List l = Main.cg.gather(this, "from Cd_graph to Syntax_vertex"); for (ListIterator i=l.listIterator(); i.hasNext();) { System.out.println(" Syntax_vertex " + ((Syntax_vertex) i.next()).get_string()); } } }} }