org.kohsuke.file_leak_detector.transform
Class MethodAppender

java.lang.Object
  extended by org.kohsuke.file_leak_detector.transform.MethodTransformSpec
      extended by 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
MethodAppender(String name, String desc)
           
 
Method Summary
protected abstract  void append(CodeGenerator g)
          Generates code to be appended right before the return statement.
 org.kohsuke.asm3.MethodVisitor newAdapter(org.kohsuke.asm3.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodAppender

public MethodAppender(String name,
                      String desc)
Method Detail

append

protected abstract void append(CodeGenerator g)
Generates code to be appended right before the return statement.


newAdapter

public org.kohsuke.asm3.MethodVisitor newAdapter(org.kohsuke.asm3.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 class MethodTransformSpec


Copyright © 2014. All rights reserved.