Class CodeGenerator
- java.lang.Object
-
- org.objectweb.asm.MethodVisitor
-
- org.kohsuke.file_leak_detector.transform.CodeGenerator
-
public class CodeGenerator extends org.objectweb.asm.MethodVisitor
Convenience method to generate bytecode.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description CodeGenerator(org.objectweb.asm.MethodVisitor mv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_goto(org.objectweb.asm.Label l)
void
_null()
void
aastore()
void
aload(int i)
void
astore(int i)
void
athrow()
void
dup()
void
iconst(int i)
void
ifFalse(org.objectweb.asm.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.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
-
-
-
-
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)
-
astore
public void astore(int i)
-
pop
public void pop()
-
ldc
public void ldc(Object o)
-
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.objectweb.asm.Label l)
-
ifFalse
public void ifFalse(org.objectweb.asm.Label label)
-
athrow
public void athrow()
-
-