FieldSignatureVisitor extends SignatureVisitor { Set<String> getTypeParameters() { return this.typeParameters; } FieldSignatureVisitor(final String name, final List<String> classTypeParameters); private  FieldSignatureVisitor(final String name, final FieldSignatureVisitor parent); @Override SignatureVisitor visitTypeArgument(final char c); @Override void visitTypeArgument(); @Override void visitClassType(final String s); @Override SignatureVisitor visitArrayType(); @Override void visitBaseType(final char c); @Override void visitTypeVariable(String typeVariable); @Override void visitEnd(); @Override void visitFormalTypeParameter(final String name); @Override void visitInnerClassType(final String name); @Override SignatureVisitor visitReturnType(); String getResult(); @Override String toString();  }
@Test public void testReturnClass3() throws Exception { File f = new File(getTestOutput(), "meghanada/Gen1.class"); String fqcn = "meghanada.Gen1"; TestVisitor visitor = doAnalyze(f, fqcn); System.out.println(visitor.visitor.getTypeParameters()); visitor.result.entrySet().stream() .forEach( entry -> { System.out.println("" + entry.getKey() + " : " + entry.getValue()); }); }