Bar
Method mRead = bar.getClass().getMethod( “getObject”, null );
TypeToken
Invokable
System.out.println( inv.getReturnType() ); // Test$Foo
也许这就是您要搜索的。TypeToken和Invokable来自Google Guava。
€:修复了有关@PaulBellora注释的代码

Bar
Method mRead = bar.getClass().getMethod( “getObject”, null );
TypeToken
Invokable
System.out.println( inv.getReturnType() ); // Test$Foo
也许这就是您要搜索的。TypeToken和Invokable来自Google Guava。
€:修复了有关@PaulBellora注释的代码