MCPcopy Create free account
hub / github.com/apache/groovy / canMean

Method canMean

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

Returns true if this node can be coerced to the specified type. This is determined by the type hierarchy defined in Types. @param type the type to check against @return true if coercion is possible

(int type)

Source from the content-addressed store, hash-verified

81 * @return {@code true} if coercion is possible
82 */
83 public boolean canMean(int type) {
84 return Types.canMean(getMeaning(), type);
85 }
86
87 /**
88 * Returns {@code true} if this node's meaning matches the specified type.

Callers

nothing calls this directly

Calls 2

canMeanMethod · 0.95
getMeaningMethod · 0.95

Tested by

no test coverage detected