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

Method getCode

src/main/java/org/codehaus/groovy/ast/MethodNode.java:117–119  ·  view source on GitHub ↗

Returns the method body as a Statement. Typically a BlockStatement containing the method's instructions. Returns null for abstract methods or interface methods with no implementation. @return the method body statement, or null for abstract methods

()

Source from the content-addressed store, hash-verified

115 * @return the method body statement, or null for abstract methods
116 */
117 public Statement getCode() {
118 return code;
119 }
120
121 /**
122 * Sets the method body statement.

Callers 15

closureCodeMethod · 0.95
visitMethod · 0.95
transformRunMethodMethod · 0.95
wrapSetterMethodMethod · 0.95
wrapSetterMethodMethod · 0.95
moreNestmateEntriesMethod · 0.95
createLambdaClassMethod · 0.95
visitMethod · 0.95
addDelegateMethodMethod · 0.95

Calls

no outgoing calls

Tested by 1

visitMethod · 0.76