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

Method isReceiver

src/main/java/org/codehaus/groovy/ast/Parameter.java:266–268  ·  view source on GitHub ↗

Returns true if this parameter represents a receiver parameter (named "this") as specified by JSR 308. Receiver parameters allow annotations on instance method receivers. @return true if this is a receiver parameter @since 5.0.0

()

Source from the content-addressed store, hash-verified

264 * @since 5.0.0
265 */
266 public boolean isReceiver() {
267 return "this".equals(getName()); // JSR 308
268 }
269}

Callers 4

addThisReferenceMethod · 0.80
addDefaultParametersMethod · 0.80
writeDirectMethodCallMethod · 0.80

Calls 2

getNameMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected