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

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.ConstructorModMethodVisitor
All Implemented Interfaces:
org.objectweb.asm.MethodVisitor

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

This class is to modify the constructor change the field Type : Interfacetype with type W3CEndpointReference 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
ConstructorModMethodVisitor(org.objectweb.asm.MethodVisitor mv, String className, Map<String,InterfaceType> allInterfaceTypes)
          Constructor.
 
Method Summary
 void visitFieldInsn(int opcode, String className, String fieldName, String fieldType)
          This method visit the code of the constructor and change InterfaceType with W3CEndpointRef
 
Methods inherited from class org.objectweb.asm.util.TraceMethodVisitor
appendLabel, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitIincInsn, visitInsn, 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

ConstructorModMethodVisitor

public ConstructorModMethodVisitor(org.objectweb.asm.MethodVisitor mv,
                                   String className,
                                   Map<String,InterfaceType> allInterfaceTypes)
Constructor.

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

visitFieldInsn

public void visitFieldInsn(int opcode,
                           String className,
                           String fieldName,
                           String fieldType)
This method visit the code of the constructor and change InterfaceType with W3CEndpointRef

Specified by:
visitFieldInsn in interface org.objectweb.asm.MethodVisitor
Overrides:
visitFieldInsn in class org.objectweb.asm.util.TraceMethodVisitor


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