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

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

public class CorbaEnumAdapter
extends org.objectweb.asm.ClassAdapter

Used to find a class that provides a corba enum implementation.


Field Summary
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
CorbaEnumAdapter(org.objectweb.asm.ClassVisitor cv)
          The adapater used to manipulate the code.
 
Method Summary
protected  void checkLabel(int access, String name, String desc)
          This method is used to collect the corba enum labels.
 List<String> getEnumLabelList()
          A getter.
 String getInternalClassName()
          A getter.
 boolean isCorbaEnum()
          A getter.
 void setCorbaEnum(boolean val)
          A setter.
 void setEnumLabelList(List<String> val)
          A setter.
 void setInternalClassName(String val)
          A setter.
 void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
          Override.
 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, visitEnd, visitInnerClass, visitMethod, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorbaEnumAdapter

public CorbaEnumAdapter(org.objectweb.asm.ClassVisitor cv)
The adapater used to manipulate the code.

Parameters:
cv - The ClassVisitor 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 superName
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.

checkLabel

protected void checkLabel(int access,
                          String name,
                          String desc)
This method is used to collect the corba enum labels.

Parameters:
access - The modifiers.
name - The field name.
desc - The data type of the field.

getEnumLabelList

public List<String> getEnumLabelList()
A getter.

Returns:
The current value.

setEnumLabelList

public void setEnumLabelList(List<String> val)
A setter.

Parameters:
val - The new value

isCorbaEnum

public boolean isCorbaEnum()
A getter.

Returns:
The current value.

setCorbaEnum

public void setCorbaEnum(boolean val)
A setter.

Parameters:
val - The new value

getInternalClassName

public String getInternalClassName()
A getter.

Returns:
The current value.

setInternalClassName

public void setInternalClassName(String val)
A setter.

Parameters:
val - The new value


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