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

Method isA

src/main/java/org/codehaus/groovy/syntax/CSTNode.java:93–95  ·  view source on GitHub ↗

Returns true if this node's meaning matches the specified type. @param type the type to check @return true if the node's meaning is of the specified type

(int type)

Source from the content-addressed store, hash-verified

91 * @return {@code true} if the node's meaning is of the specified type
92 */
93 public boolean isA(int type) {
94 return Types.ofType(getMeaning(), type);
95 }
96
97 /**
98 * Returns {@code true} if this node's meaning matches any of the specified types.

Callers 6

getMeaningAsMethod · 0.95
matchesMethod · 0.95
isAnExpressionMethod · 0.95
isAnExpressionMethod · 0.80
visitBinaryExpressionMethod · 0.80

Calls 2

ofTypeMethod · 0.95
getMeaningMethod · 0.95

Tested by

no test coverage detected