Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能生成以下内容:
class A extends B<A> {}
我坚持构造 ParameterizedTypeName 来添加超类,我似乎找不到在构造 A 之前引用它的类型的方法......
任何指针?这是可能吗?
用于Classname.get("com.example.project", "A")获取A和。ParameterizedTypeName_B<A>
Classname.get("com.example.project", "A")
A
ParameterizedTypeName
B<A>