it.imolinfo.jbi4corba.webservice.generator.bcm
Class AppenderMethodVisitor

java.lang.Object
  extended by org.objectweb.asm.util.AbstractVisitor
      extended by org.objectweb.asm.util.TraceAbstractVisitor
          extended by org.objectweb.asm.util.TraceMethodVisitor
              extended by it.imolinfo.jbi4corba.webservice.generator.bcm.AppenderMethodVisitor
All Implemented Interfaces:
org.objectweb.asm.MethodVisitor

public class AppenderMethodVisitor
extends org.objectweb.asm.util.TraceMethodVisitor

This class is used to append (at the default constructor) the code to initialize some fields.


Field Summary
 
Fields inherited from class org.objectweb.asm.util.TraceMethodVisitor
labelNames, ltab, mv, tab2, tab3
 
Fields inherited from class org.objectweb.asm.util.TraceAbstractVisitor
CLASS_DECLARATION, CLASS_SIGNATURE, FIELD_DESCRIPTOR, FIELD_SIGNATURE, INTERNAL_NAME, METHOD_DESCRIPTOR, METHOD_SIGNATURE, PARAMETERS_DECLARATION, tab, TYPE_DECLARATION
 
Fields inherited from class org.objectweb.asm.util.AbstractVisitor
buf, OPCODES, text, TYPES
 
Constructor Summary
AppenderMethodVisitor(org.objectweb.asm.MethodVisitor mv, Map<String,String> mapOfFields, String className)
          Constructor.
 
Method Summary
 void visitInsn(int opcode)
          This method appends (before Opcodes.RETURN) the initialization code of every fields.
 
Methods inherited from class org.objectweb.asm.util.TraceMethodVisitor
appendLabel, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitIincInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class org.objectweb.asm.util.TraceAbstractVisitor
appendDescriptor, createTraceAnnotationVisitor
 
Methods inherited from class org.objectweb.asm.util.AbstractVisitor
appendString, getDefaultAttributes, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppenderMethodVisitor

public AppenderMethodVisitor(org.objectweb.asm.MethodVisitor mv,
                             Map<String,String> mapOfFields,
                             String className)
Constructor.

Parameters:
mv - The method visitor.
mapOfFields - The fields to initialize.
className - The name of the class.
allInterfaceTypes - All the Interface type
Method Detail

visitInsn

public void visitInsn(int opcode)
This method appends (before Opcodes.RETURN) the initialization code of every fields.

Specified by:
visitInsn in interface org.objectweb.asm.MethodVisitor
Overrides:
visitInsn in class org.objectweb.asm.util.TraceMethodVisitor
Parameters:
opcode - @see org.objectweb.asm.Opcodes


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.