如果我在String
中拥有Java类的完整源代码,那么查找其完全限定类名的最简单方法是什么?
public class MyParser {
private MyParser(String code) {
// Find here the fully qualified name of the class whose full source code
// is passed in the code argument.
}
}
答案 0 :(得分:1)