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

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

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

This class is to modify the all methods that contain any attribution Replace: Any with type Object the code to initialize some fields.

Author:
laurLG

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
ReplaceAnyMethodVisitor(org.objectweb.asm.MethodVisitor mv)
          Constructor.
 
Method Summary
 void visitFieldInsn(int opcode, String className, String fieldName, String fieldType)
          This method visit the code of the constructor and change Any with Object
 
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

ReplaceAnyMethodVisitor

public ReplaceAnyMethodVisitor(org.objectweb.asm.MethodVisitor mv)
Constructor.

Parameters:
mv - The method visitor.
Method Detail

visitFieldInsn

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

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.