comparison jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/JavaType.java @ 23393:1d4ce2d19e52

clean up and minimize JVMCI (JDK-8156835)
author Doug Simon <doug.simon@oracle.com>
date Thu, 12 May 2016 20:57:31 +0200
parents 30af491f98c5
children
comparison
equal deleted inserted replaced
23392:b3a816d3b844 23393:1d4ce2d19e52
57 } 57 }
58 if (name.endsWith(";")) { 58 if (name.endsWith(";")) {
59 name = name.substring(0, name.length() - 1); 59 name = name.substring(0, name.length() - 1);
60 } 60 }
61 return name; 61 return name;
62 }
63
64 /**
65 * Checks whether this type is an array class.
66 *
67 * @return {@code true} if this type is an array class
68 */
69 default boolean isArray() {
70 return getComponentType() != null;
62 } 71 }
63 72
64 /** 73 /**
65 * For array types, gets the type of the components, or {@code null} if this is not an array 74 * For array types, gets the type of the components, or {@code null} if this is not an array
66 * type. This method is analogous to {@link Class#getComponentType()}. 75 * type. This method is analogous to {@link Class#getComponentType()}.