getSignatureInstance() 方法实际地构建新的泛型类模板,然后为参数类型的具体列表实例化这些模板。
The getSignatureInstance() method is what actually builds new generic class templates and then instantiates these templates for specific lists of parameter types.
泛化之后,接收方可以象编辑和处理任何其它API名称一样编辑和处理类、字段和方法名称。
After generalization, the recipients could edit and process the class, field, and method names in the same way as any other API names.
处理该问题的另一种方法是:只要泛型类的运行时实例化没有包括所需构造函数,就抛出异常。
Another way of handling this problem would be to throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
应用推荐