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

java.lang.Object
  extended by org.objectweb.asm.ClassAdapter
      extended by it.imolinfo.jbi4corba.webservice.generator.bcm.WsdlToCorbaAdapter
All Implemented Interfaces:
org.objectweb.asm.ClassVisitor

public class WsdlToCorbaAdapter
extends org.objectweb.asm.ClassAdapter

bytecode manipulation. For each Object visited we modify this bytecode: 1) remove the keyword 'abstract' in the class declaration.


Field Summary
protected  String classesDirName
           
protected  String className
           
protected  org.objectweb.asm.ClassWriter classWriter
           
protected  Map<String,String> mapOfFields
           
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
WsdlToCorbaAdapter(org.objectweb.asm.ClassVisitor cv, org.objectweb.asm.ClassWriter cw, String cn, String classes)
          The adapater used to manipulate the code.
 
Method Summary
 String getClassNameWithoutClassesDir()
           
 void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
          Override.
 void visitEnd()
          XXX javadoc.
 org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
           
 
Methods inherited from class org.objectweb.asm.ClassAdapter
visitAnnotation, visitAttribute, visitInnerClass, visitMethod, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classesDirName

protected String classesDirName

className

protected String className

classWriter

protected org.objectweb.asm.ClassWriter classWriter

mapOfFields

protected Map<String,String> mapOfFields
Constructor Detail

WsdlToCorbaAdapter

public WsdlToCorbaAdapter(org.objectweb.asm.ClassVisitor cv,
                          org.objectweb.asm.ClassWriter cw,
                          String cn,
                          String classes)
The adapater used to manipulate the code.

Parameters:
cv - The ClassVisitor used in this object.
cw - The ClassWriter used in this object.
cn - The class name to manipulate.
classes - The clases used in this object.
Method Detail

visit

public void visit(int version,
                  int access,
                  String name,
                  String signature,
                  String superName,
                  String[] interfaces)
Override.

Specified by:
visit in interface org.objectweb.asm.ClassVisitor
Overrides:
visit in class org.objectweb.asm.ClassAdapter
Parameters:
version - The version
access - The access
name - The name
signature - The signature
superName - The super name
interfaces - The interfaces

visitField

public org.objectweb.asm.FieldVisitor visitField(int access,
                                                 String name,
                                                 String desc,
                                                 String signature,
                                                 Object value)
Specified by:
visitField in interface org.objectweb.asm.ClassVisitor
Overrides:
visitField in class org.objectweb.asm.ClassAdapter
Parameters:
access - the field's access flags (see Opcodes). This parameter also indicates if the field is synthetic and/or deprecated.
name - the field's name.
desc - the field's descriptor (see Type).
signature - the field's signature. May be null if the field's type does not use generic types.
value - the field's initial value. This parameter, which may be null if the field does not have an initial value, must be an Integer, a Float, a Long, a Double or a String (for int, float, long or String fields respectively). This parameter is only used for static fields. Its value is IGNORED for non static fields, which must be initialized through bytecode instructions in constructors or methods.
Returns:
a visitor to visit field annotations and attributes, or null if this class visitor is not interested in visiting these annotations and attributes.

visitEnd

public void visitEnd()
XXX javadoc.

Specified by:
visitEnd in interface org.objectweb.asm.ClassVisitor
Overrides:
visitEnd in class org.objectweb.asm.ClassAdapter

getClassNameWithoutClassesDir

public String getClassNameWithoutClassesDir()
Returns:
The return


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