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

Method isAllOf

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

Returns true if this node's meaning matches all of the specified types. @param types an array of types to check @return true if the node's meaning matches all of the types

(int[] types)

Source from the content-addressed store, hash-verified

118 * @return {@code true} if the node's meaning matches all of the types
119 */
120 public boolean isAllOf(int[] types) {
121 int meaning = getMeaning();
122 for (int type : types) {
123 if (!Types.ofType(meaning, type)) {
124 return false;
125 }
126 }
127
128 return true;
129 }
130
131 /**
132 * Returns the first matching meaning of the specified types.

Callers

nothing calls this directly

Calls 2

getMeaningMethod · 0.95
ofTypeMethod · 0.95

Tested by

no test coverage detected