public abstract class MethodAppender extends MethodTransformSpec
MethodTransformSpec
that adds some code right before the return statement.desc, name
Constructor and Description |
---|
MethodAppender(String name,
String desc) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
append(CodeGenerator g)
Generates code to be appended right before the return statement.
|
org.kohsuke.asm5.MethodVisitor |
newAdapter(org.kohsuke.asm5.MethodVisitor base,
int access,
String name,
String desc,
String signature,
String[] exceptions)
Creates a visitor that receives the original method definition and writes
the transformed method to the given base.
|
protected abstract void append(CodeGenerator g)
public org.kohsuke.asm5.MethodVisitor newAdapter(org.kohsuke.asm5.MethodVisitor base, int access, String name, String desc, String signature, String[] exceptions)
MethodTransformSpec
newAdapter
in class MethodTransformSpec
Copyright © 2015. All rights reserved.