Class MethodAppender
- java.lang.Object
-
- org.kohsuke.file_leak_detector.transform.MethodTransformSpec
-
- org.kohsuke.file_leak_detector.transform.MethodAppender
-
public abstract class MethodAppender extends MethodTransformSpec
MethodTransformSpec
that adds some code right before the return statement.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from class org.kohsuke.file_leak_detector.transform.MethodTransformSpec
desc, name
-
-
Constructor Summary
Constructors Constructor Description MethodAppender(String name, String desc)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
append(CodeGenerator g)
Generates code to be appended right before the return statement.org.objectweb.asm.MethodVisitor
newAdapter(org.objectweb.asm.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.
-
-
-
Method Detail
-
append
protected abstract void append(CodeGenerator g)
Generates code to be appended right before the return statement.
-
newAdapter
public org.objectweb.asm.MethodVisitor newAdapter(org.objectweb.asm.MethodVisitor base, int access, String name, String desc, String signature, String[] exceptions)
Description copied from class:MethodTransformSpec
Creates a visitor that receives the original method definition and writes the transformed method to the given base.- Specified by:
newAdapter
in classMethodTransformSpec
-
-