private void addAllFireListenerMethods( final JavacType type, final TypeSymbol interfaze, final TypeSymbol superInterfaze) { for (Symbol member : superInterfaze.getEnclosedElements()) { if (member.getKind() != ElementKind.METHOD) continue; handler.addFireListenerMethod(type, interfaze, (MethodSymbol) member); } ClassType superInterfazeType = (ClassType) superInterfaze.type; if (superInterfazeType.interfaces_field != null) for (Type iface : superInterfazeType.interfaces_field) { addAllFireListenerMethods(type, interfaze, iface.asElement()); } }
protected void printSymbol(String label, Symbol sym, Details details) { if (sym == null) { printNull(label); } else { switch (details) { case SUMMARY: printString(label, toString(sym)); break; case FULL: indent(); out.print(label); out.println( ": " + info( sym.getClass(), String.format("0x%x--%s", sym.kind.ordinal(), Kinds.kindName(sym)), sym.getKind()) + " " + sym.name + " " + hashString(sym)); indent(+1); if (showSrc) { JCTree tree = (JCTree) trees.getTree(sym); if (tree != null) printSource("src", tree); } printString( "flags", String.format("0x%x--%s", sym.flags_field, Flags.toString(sym.flags_field))); printObject("completer", sym.completer, Details.SUMMARY); // what if too long? printSymbol("owner", sym.owner, Details.SUMMARY); printType("type", sym.type, Details.SUMMARY); printType("erasure", sym.erasure_field, Details.SUMMARY); sym.accept(symVisitor, null); printAnnotations("annotations", sym.getMetadata(), Details.SUMMARY); indent(-1); } } }