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

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

public class AddExceptionSuperclass
extends org.objectweb.asm.ClassAdapter

Adds the Exception superclass and removes the default constructor. Taken from the Jbi4Ejb project


Field Summary
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
AddExceptionSuperclass(org.objectweb.asm.ClassVisitor cv)
          The adapter used to manipulate the code.
 
Method Summary
 void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
          Adds the java.lang.Exception superclass.
 org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
          Removes the default constructor (at bytecode level call the Object constructor.
 
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

AddExceptionSuperclass

public AddExceptionSuperclass(org.objectweb.asm.ClassVisitor cv)
The adapter used to manipulate the code.

Parameters:
cv - The ClassVisitor
Method Detail

visit

public void visit(int version,
                  int access,
                  String name,
                  String signature,
                  String superName,
                  String[] interfaces)
Adds the java.lang.Exception superclass.

Specified by:
visit in interface org.objectweb.asm.ClassVisitor
Overrides:
visit in class org.objectweb.asm.ClassAdapter
Parameters:
version - the version
access - the class access modifier
name - the class name
signature - the class signature
superName - the superclass name
interfaces - the interfaces impelemented

visitMethod

public org.objectweb.asm.MethodVisitor visitMethod(int access,
                                                   String name,
                                                   String desc,
                                                   String signature,
                                                   String[] exceptions)
Removes the default constructor (at bytecode level call the Object constructor.

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 method signature
exceptions - The throwed exceptions
Returns:
The return


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