< prev index next >

src/jdk.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/JavaType.java

Print this page

        

*** 60,69 **** --- 60,78 ---- } return name; } /** + * Checks whether this type is an array class. + * + * @return {@code true} if this type is an array class + */ + default boolean isArray() { + return getComponentType() != null; + } + + /** * For array types, gets the type of the components, or {@code null} if this is not an array * type. This method is analogous to {@link Class#getComponentType()}. */ JavaType getComponentType();
< prev index next >