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

Method hasVariable

src/main/java/groovy/lang/Binding.java:105–107  ·  view source on GitHub ↗

Simple check for whether the binding contains a particular variable or not. @param name the name of the variable to check for

(String name)

Source from the content-addressed store, hash-verified

103 * @param name the name of the variable to check for
104 */
105 public boolean hasVariable(String name) {
106 return variables != null && variables.containsKey(name);
107 }
108
109 /**
110 * Returns the variables map, creating it on first access.

Callers 1

setPropertyMethod · 0.45

Calls 1

containsKeyMethod · 0.65

Tested by

no test coverage detected