blob: 81171038dde91dc9115986788035d0615ca44062 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package cuchaz.enigma.analysis;
import org.objectweb.asm.tree.MethodNode;
import java.util.function.Consumer;
public class MethodNodeWithAction extends MethodNode {
private final Consumer<MethodNode> action;
public MethodNodeWithAction(int api, int access, String name, String descriptor, String signature, String[] exceptions, Consumer<MethodNode> action) {
super(api, access, name, descriptor, signature, exceptions);
this.action = action;
}
@Override
public void visitEnd() {
action.accept(this);
}
}
|