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

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

public class CorbaOnewayAdapter
extends org.objectweb.asm.ClassAdapter

This class is used to discover if the class visited is a corba stub with oneway operations.


Field Summary
protected  StringWriter stringWriter
          The class writer that contains the bytecode.
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
CorbaOnewayAdapter(org.objectweb.asm.ClassVisitor cv, StringWriter cw)
          The adapater used to manipulate the code.
 
Method Summary
 String getAssociatedInterface()
           
 String getInternalClassName()
           
 List<String> getOnewayOperationList()
           
 void setAssociatedInterface(String associatedInterface)
           
 void setInternalClassName(String internalClassName)
           
 void setOnewayOperationList(List<String> onewayOperationList)
           
 void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
          Ovveride.
 org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
          Override.
 
Methods inherited from class org.objectweb.asm.ClassAdapter
visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringWriter

protected StringWriter stringWriter
The class writer that contains the bytecode.

Constructor Detail

CorbaOnewayAdapter

public CorbaOnewayAdapter(org.objectweb.asm.ClassVisitor cv,
                          StringWriter cw)
The adapater used to manipulate the code.

Parameters:
cv - The ClassVisitor used in this object.
cw - The string writer.
Method Detail

visit

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

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 superName
interfaces - The interfaces

visitMethod

public org.objectweb.asm.MethodVisitor visitMethod(int access,
                                                   String name,
                                                   String desc,
                                                   String signature,
                                                   String[] exceptions)
Override.

Specified by:
visitMethod in interface org.objectweb.asm.ClassVisitor
Overrides:
visitMethod in class org.objectweb.asm.ClassAdapter
Parameters:
access - The access
name - The name
desc - The desc
signature - The signature
exceptions - The exceptions
Returns:
The return

getInternalClassName

public String getInternalClassName()
Returns:
the return

setInternalClassName

public void setInternalClassName(String internalClassName)
Parameters:
internalClassName - The internal class name

getOnewayOperationList

public List<String> getOnewayOperationList()
Returns:
The return

setOnewayOperationList

public void setOnewayOperationList(List<String> onewayOperationList)
Parameters:
onewayOperationList - The oneway operation list

getAssociatedInterface

public String getAssociatedInterface()
Returns:
The return

setAssociatedInterface

public void setAssociatedInterface(String associatedInterface)
Parameters:
associatedInterface - The associated interface.


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