| org.ow2.easybeans.enhancer.bean.BeanClassAdapter
BeanClassAdapter | public class BeanClassAdapter extends ClassAdapter implements Opcodes(Code) | | This class adds a bean interface to the parsed object.
It also adds getEasyBeansFactory method defined in the EasyBeansBean interface.
Stateless bean will have EasyBeansStatelessSessionBean interface, etc.
author: Florent Benoit |
Inner Class :public class AddMethodConstructorAdapter extends MethodAdapter | |
Method Summary | |
public void | visit(int version, int access, String name, String signature, String superName, String[] interfaces) Visits the header of the class.
Parameters: version - the class version. Parameters: access - the class's access flags (seeorg.ow2.easybeans.asm.Opcodes). | public void | visitEnd() Visits the end of the class. | public MethodVisitor | visitMethod(int access, String name, String desc, String signature, String[] exceptions) Visits a method of the class. |
TIMER_JMETHOD | final public static JMethod TIMER_JMETHOD(Code) | | JMethod object for timeoutCallByEasyBeans.
|
TIMER_METHOD | final public static String TIMER_METHOD(Code) | | Timer method name.
|
BeanClassAdapter | public BeanClassAdapter(ClassAnnotationMetadata classAnnotationMetadata, ClassVisitor cv)(Code) | | Constructor.
Parameters: classAnnotationMetadata - object containing all attributes of theclass Parameters: cv - the class visitor to which this adapter must delegate calls. |
visit | public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)(Code) | | Visits the header of the class.
Parameters: version - the class version. Parameters: access - the class's access flags (seeorg.ow2.easybeans.asm.Opcodes). This parameter also indicatesif the class is deprecated. Parameters: name - the internal name of the class (seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName). Parameters: signature - the signature of this class. May be null ifthe class is not a generic one, and does not extend or implementgeneric classes or interfaces. Parameters: superName - the internal of name of the super class (seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName).For interfaces, the super class is Object. May benull, but only for the Object class. Parameters: interfaces - the internal names of the class's interfaces (seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName).May be null. |
visitEnd | public void visitEnd()(Code) | | Visits the end of the class. This method, which is the last one to be
called, is used to inform the visitor that all the fields and methods of
the class have been visited.
|
visitMethod | public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)(Code) | | Visits a method of the class. This method must return a new
MethodVisitor instance (or null) each time it is
called, i.e., it should not return a previously returned visitor.
Parameters: access - the method's access flags (see Opcodes). Thisparameter also indicates if the method is synthetic and/ordeprecated. Parameters: name - the method's name. Parameters: desc - the method's descriptor (see Type Type). Parameters: signature - the method's signature. May be null if themethod parameters, return type and exceptions do not use generictypes. Parameters: exceptions - the internal names of the method's exception classes(see Type.getInternalName getInternalName). May benull. an object to visit the byte code of the method, or nullif this class visitor is not interested in visiting the code ofthis method. |
|
|