org.codehaus.aspectwerkz.annotation.instrumentation.asm
Class AsmAnnotationHelper.NullCodeAdapter

java.lang.Object
  extended by org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.NullCodeAdapter
All Implemented Interfaces:
org.objectweb.asm.CodeVisitor
Enclosing class:
AsmAnnotationHelper

public static class AsmAnnotationHelper.NullCodeAdapter
extends Object
implements org.objectweb.asm.CodeVisitor

A NullCodeAdapter that does nothing. Can be used to speed up ASM and avoid unecessary bytecode writing thru a regular CodeWriter when this is not needed (read only purpose)


Field Summary
static org.objectweb.asm.CodeVisitor NULL_CODE_ADAPTER
           
 
Constructor Summary
AsmAnnotationHelper.NullCodeAdapter()
           
 
Method Summary
 void visitAttribute(org.objectweb.asm.Attribute attr)
           
 void visitFieldInsn(int opcode, String owner, String name, String desc)
           
 void visitIincInsn(int var, int increment)
           
 void visitInsn(int opcode)
           
 void visitIntInsn(int opcode, int operand)
           
 void visitJumpInsn(int opcode, org.objectweb.asm.Label label)
           
 void visitLabel(org.objectweb.asm.Label label)
           
 void visitLdcInsn(Object cst)
           
 void visitLineNumber(int line, org.objectweb.asm.Label start)
           
 void visitLocalVariable(String name, String desc, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index)
           
 void visitLookupSwitchInsn(org.objectweb.asm.Label dflt, int[] keys, org.objectweb.asm.Label[] labels)
           
 void visitMaxs(int maxStack, int maxLocals)
           
 void visitMethodInsn(int opcode, String owner, String name, String desc)
           
 void visitMultiANewArrayInsn(String desc, int dims)
           
 void visitTableSwitchInsn(int min, int max, org.objectweb.asm.Label dflt, org.objectweb.asm.Label[] labels)
           
 void visitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type)
           
 void visitTypeInsn(int opcode, String desc)
           
 void visitVarInsn(int opcode, int var)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_CODE_ADAPTER

public static final org.objectweb.asm.CodeVisitor NULL_CODE_ADAPTER
Constructor Detail

AsmAnnotationHelper.NullCodeAdapter

public AsmAnnotationHelper.NullCodeAdapter()
Method Detail

visitInsn

public void visitInsn(int opcode)
Specified by:
visitInsn in interface org.objectweb.asm.CodeVisitor

visitIntInsn

public void visitIntInsn(int opcode,
                         int operand)
Specified by:
visitIntInsn in interface org.objectweb.asm.CodeVisitor

visitVarInsn

public void visitVarInsn(int opcode,
                         int var)
Specified by:
visitVarInsn in interface org.objectweb.asm.CodeVisitor

visitTypeInsn

public void visitTypeInsn(int opcode,
                          String desc)
Specified by:
visitTypeInsn in interface org.objectweb.asm.CodeVisitor

visitFieldInsn

public void visitFieldInsn(int opcode,
                           String owner,
                           String name,
                           String desc)
Specified by:
visitFieldInsn in interface org.objectweb.asm.CodeVisitor

visitMethodInsn

public void visitMethodInsn(int opcode,
                            String owner,
                            String name,
                            String desc)
Specified by:
visitMethodInsn in interface org.objectweb.asm.CodeVisitor

visitJumpInsn

public void visitJumpInsn(int opcode,
                          org.objectweb.asm.Label label)
Specified by:
visitJumpInsn in interface org.objectweb.asm.CodeVisitor

visitLabel

public void visitLabel(org.objectweb.asm.Label label)
Specified by:
visitLabel in interface org.objectweb.asm.CodeVisitor

visitLdcInsn

public void visitLdcInsn(Object cst)
Specified by:
visitLdcInsn in interface org.objectweb.asm.CodeVisitor

visitIincInsn

public void visitIincInsn(int var,
                          int increment)
Specified by:
visitIincInsn in interface org.objectweb.asm.CodeVisitor

visitTableSwitchInsn

public void visitTableSwitchInsn(int min,
                                 int max,
                                 org.objectweb.asm.Label dflt,
                                 org.objectweb.asm.Label[] labels)
Specified by:
visitTableSwitchInsn in interface org.objectweb.asm.CodeVisitor

visitLookupSwitchInsn

public void visitLookupSwitchInsn(org.objectweb.asm.Label dflt,
                                  int[] keys,
                                  org.objectweb.asm.Label[] labels)
Specified by:
visitLookupSwitchInsn in interface org.objectweb.asm.CodeVisitor

visitMultiANewArrayInsn

public void visitMultiANewArrayInsn(String desc,
                                    int dims)
Specified by:
visitMultiANewArrayInsn in interface org.objectweb.asm.CodeVisitor

visitTryCatchBlock

public void visitTryCatchBlock(org.objectweb.asm.Label start,
                               org.objectweb.asm.Label end,
                               org.objectweb.asm.Label handler,
                               String type)
Specified by:
visitTryCatchBlock in interface org.objectweb.asm.CodeVisitor

visitMaxs

public void visitMaxs(int maxStack,
                      int maxLocals)
Specified by:
visitMaxs in interface org.objectweb.asm.CodeVisitor

visitLocalVariable

public void visitLocalVariable(String name,
                               String desc,
                               org.objectweb.asm.Label start,
                               org.objectweb.asm.Label end,
                               int index)
Specified by:
visitLocalVariable in interface org.objectweb.asm.CodeVisitor

visitLineNumber

public void visitLineNumber(int line,
                            org.objectweb.asm.Label start)
Specified by:
visitLineNumber in interface org.objectweb.asm.CodeVisitor

visitAttribute

public void visitAttribute(org.objectweb.asm.Attribute attr)
Specified by:
visitAttribute in interface org.objectweb.asm.CodeVisitor


Copyright © 2002-2005 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.