MCPcopy Index your code
hub / github.com/apache/groovy / isArray

Method isArray

src/main/java/org/codehaus/groovy/ast/ClassNode.java:1961–1963  ·  view source on GitHub ↗

Determines whether this ClassNode represents an array type. A ClassNode is an array if its component type has been set. The component type represents the element type of the array (e.g., "int" for "int[]", or "String" for "String[]"). @return true if this ClassNode represents an array type;

()

Source from the content-addressed store, hash-verified

1959 * @return {@code true} if this ClassNode represents an array type; {@code false} if it represents a scalar type
1960 */
1961 public boolean isArray() {
1962 return (componentType != null);
1963 }
1964
1965 /**
1966 * Returns a {@code ClassNode} representing an array of the type represented by this.

Callers 15

testPlainReferenceMethod · 0.95
createPropGetterMethod · 0.95
printMethodMethod · 0.95
visitBinaryExpressionMethod · 0.95
resolveToInnerMethod · 0.95
visitMethod · 0.95
visitExpressionMethod · 0.95
getStaticFieldNameMethod · 0.95
visitArrayExpressionMethod · 0.95
assignToArrayMethod · 0.95

Calls

no outgoing calls

Tested by 1

testPlainReferenceMethod · 0.76