org.kohsuke.file_leak_detector.transform
Class CodeGenerator

java.lang.Object
  extended by org.kohsuke.asm3.MethodAdapter
      extended by org.kohsuke.file_leak_detector.transform.CodeGenerator
All Implemented Interfaces:
org.kohsuke.asm3.MethodVisitor

public class CodeGenerator
extends org.kohsuke.asm3.MethodAdapter

Convenience method to generate bytecode.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.kohsuke.asm3.MethodAdapter
mv
 
Constructor Summary
CodeGenerator(org.kohsuke.asm3.MethodVisitor mv)
           
 
Method Summary
 void _goto(org.kohsuke.asm3.Label l)
           
 void _null()
           
 void aastore()
           
 void aload(int i)
           
 void athrow()
           
 void dup()
           
 void iconst(int i)
           
 void ifFalse(org.kohsuke.asm3.Label label)
           
 void invokeAppStatic(Class userClass, String userMethodName, Class[] argTypes, int[] localIndex)
          Invokes a static method on the class in the system classloader.
 void invokeAppStatic(String userClassName, String userMethodName, Class[] argTypes, int[] localIndex)
           
 void invokeVirtual(String owner, String name, String desc)
           
 void ldc(Object o)
           
 void newArray(String type, int size)
           
 void pop()
           
 void println(String msg)
           
 
Methods inherited from class org.kohsuke.asm3.MethodAdapter
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeGenerator

public CodeGenerator(org.kohsuke.asm3.MethodVisitor mv)
Method Detail

println

public void println(String msg)

_null

public void _null()

newArray

public void newArray(String type,
                     int size)

iconst

public void iconst(int i)

dup

public void dup()

aastore

public void aastore()

aload

public void aload(int i)

pop

public void pop()

ldc

public void ldc(Object o)

invokeVirtual

public void invokeVirtual(String owner,
                          String name,
                          String desc)

invokeAppStatic

public void invokeAppStatic(Class userClass,
                            String userMethodName,
                            Class[] argTypes,
                            int[] localIndex)
Invokes a static method on the class in the system classloader. This is used for instrumenting classes in the bootstrap classloader, which cannot see the classes in the system classloader.


invokeAppStatic

public void invokeAppStatic(String userClassName,
                            String userMethodName,
                            Class[] argTypes,
                            int[] localIndex)

_goto

public void _goto(org.kohsuke.asm3.Label l)

ifFalse

public void ifFalse(org.kohsuke.asm3.Label label)

athrow

public void athrow()


Copyright © 2014. All rights reserved.