Java 8中jdt.core.dom.ArrayType.getComponentType()的模拟

发布时间:2020-07-06 20:09

在使用JLS8 API之前,我们已经非常方便地获得了ArrayType的“先前”版本。如果我们使用String[][][]类型,则getComponentType()返回String[][],依此类推。在JLS8 API中,我们不能使用getComponentType(),所以它的相似之处是什么?

回答1