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

Method matches

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

Returns true if this node matches the specified type. Equivalent to #isA(int). Missing nodes are represented as Token#NULL. @param type the type to match @return true if the node matches the type

(int type)

Source from the content-addressed store, hash-verified

157 * @return {@code true} if the node matches the type
158 */
159 boolean matches(int type) {
160 return isA(type);
161 }
162
163 /**
164 * Returns {@code true} if this node and its first child match the specified types.

Callers

nothing calls this directly

Calls 2

isAMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected