Returns a ClassNode representing an array of the type represented by this.
()
| 1966 | * Returns a {@code ClassNode} representing an array of the type represented by this. |
| 1967 | */ |
| 1968 | public ClassNode makeArray() { |
| 1969 | ClassNode node; |
| 1970 | if (redirect != null) { |
| 1971 | node = redirect.makeArray(); |
| 1972 | node.componentType = this; |
| 1973 | } else if (clazz != null) { |
| 1974 | Class<?> type = Array.newInstance(clazz, 0).getClass(); |
| 1975 | // don't use the ClassHelper here! |
| 1976 | node = new ClassNode(type, this); |
| 1977 | } else { |
| 1978 | node = new ClassNode(this); |
| 1979 | } |
| 1980 | return node; |
| 1981 | } |
| 1982 | |
| 1983 | /** |
| 1984 | * Returns the component type of this array ClassNode. |
no test coverage detected