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

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

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

This class is to modify the all methods that contain uniontype attribution Replace: Uniontype with type Object 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
ReplaceUnionsMethodVisitor(org.objectweb.asm.MethodVisitor mv, Map<String,UnionType> allUnionTypes)
          Constructor.
 
Method Summary
 void visitFieldInsn(int opcode, String className, String fieldName, String fieldType)
          This method visit the code of the methods and change type of union with wrappers
 
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

ReplaceUnionsMethodVisitor

public ReplaceUnionsMethodVisitor(org.objectweb.asm.MethodVisitor mv,
                                  Map<String,UnionType> allUnionTypes)
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 methods and change type of union with wrappers

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.