it.imolinfo.jbi4ejb.webservice.generator.bcm
Class RemoveEJBInterfaceAdapter

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

public class RemoveEJBInterfaceAdapter
extends org.objectweb.asm.ClassAdapter

Removes the Remote/EJBObject interfaces and the throws RemoteException.

Author:
Marco Piraccini

Field Summary
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
RemoveEJBInterfaceAdapter(org.objectweb.asm.ClassVisitor arg0, java.lang.String classesDirName)
          Constructor.
 
Method Summary
 void visit(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)
          Removes the "implements Remote, EJBObject" clause.
 org.objectweb.asm.MethodVisitor visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
          Visit the method, tremoving the "throws RemoteException, EJBException" clause.
 
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
 

Constructor Detail

RemoveEJBInterfaceAdapter

public RemoveEJBInterfaceAdapter(org.objectweb.asm.ClassVisitor arg0,
                                 java.lang.String classesDirName)
Constructor.

Parameters:
arg0 - The ClassVisitor
Method Detail

visit

public void visit(int version,
                  int access,
                  java.lang.String name,
                  java.lang.String signature,
                  java.lang.String superName,
                  java.lang.String[] interfaces)
Removes the "implements Remote, EJBObject" clause.

Specified by:
visit in interface org.objectweb.asm.ClassVisitor
Overrides:
visit in class org.objectweb.asm.ClassAdapter
Parameters:
version - The versione
access - the access modifier
name - The class name
signature - The signatur
superName - The superclass name
interfaces - The interfaces array.
See Also:
ClassAdapter.visit(int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[])

visitMethod

public org.objectweb.asm.MethodVisitor visitMethod(int access,
                                                   java.lang.String name,
                                                   java.lang.String desc,
                                                   java.lang.String signature,
                                                   java.lang.String[] exceptions)
Visit the method, tremoving the "throws RemoteException, EJBException" clause.

Specified by:
visitMethod in interface org.objectweb.asm.ClassVisitor
Overrides:
visitMethod in class org.objectweb.asm.ClassAdapter
Parameters:
access - The access modifier
name - The method name
desc - The description
signature - The signature
exceptions - The exceptions array
Returns:
The MethodVisitor
See Also:
ClassAdapter.visitMethod(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[])


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.