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

Method isOneOf

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

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

(int[] types)

Source from the content-addressed store, hash-verified

101 * @return {@code true} if the node's meaning matches at least one of the types
102 */
103 public boolean isOneOf(int[] types) {
104 int meaning = getMeaning();
105 for (int type : types) {
106 if (Types.ofType(meaning, type)) {
107 return true;
108 }
109 }
110
111 return false;
112 }
113
114 /**
115 * Returns {@code true} if this node's meaning matches all of the specified types.

Callers 1

Calls 2

getMeaningMethod · 0.95
ofTypeMethod · 0.95

Tested by

no test coverage detected