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

Method setCode

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

Sets the method body statement. Typically a BlockStatement. Setting null indicates an abstract method. @param code the statement representing the method body

(Statement code)

Source from the content-addressed store, hash-verified

125 * @param code the statement representing the method body
126 */
127 public void setCode(Statement code) {
128 this.code = code;
129 }
130
131 /**
132 * Returns the ASM modifier flags for this method.

Callers 15

visitMethod · 0.95
wrapSetterMethodMethod · 0.95
wrapSetterMethodMethod · 0.95
configureClassNodeMethod · 0.95
addMethodsMethod · 0.95
addInitMethod · 0.95
createMethodNodeMethod · 0.95
createHashCodeMethod · 0.95
createEqualsMethod · 0.95
createToStringMethod · 0.95
addOrUpdateCompareToMethod · 0.95
createFieldMethod · 0.95

Calls

no outgoing calls

Tested by 1

visitMethod · 0.76