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

java.lang.Object
  extended by it.imolinfo.jbi4corba.webservice.generator.bcm.ByteCodeManipulationUtil

public class ByteCodeManipulationUtil
extends Object

This class is used to supply all the utility methods for the bytecode manipulation.


Field Summary
static String JAXB_XML_ATTRIBUTE
          XmlAttribute annotation.
 
Constructor Summary
ByteCodeManipulationUtil()
          Default constructor.
 
Method Summary
 void createGetter(org.objectweb.asm.ClassWriter classWriter, String className, String propertyName, String returnType, boolean isXmlAttribute)
          This method add a getter method.
 void createSetter(org.objectweb.asm.ClassWriter classWriter, String className, String propertyName, String type)
          This method add a setter method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXB_XML_ATTRIBUTE

public static final String JAXB_XML_ATTRIBUTE
XmlAttribute annotation.

See Also:
Constant Field Values
Constructor Detail

ByteCodeManipulationUtil

public ByteCodeManipulationUtil()
Default constructor.

Method Detail

createSetter

public void createSetter(org.objectweb.asm.ClassWriter classWriter,
                         String className,
                         String propertyName,
                         String type)
This method add a setter method.

Parameters:
classWriter - The object used to create the setter.
className - The name of the class.
propertyName - The name of the property of the setter.
type - The type of the property of the setter.

createGetter

public void createGetter(org.objectweb.asm.ClassWriter classWriter,
                         String className,
                         String propertyName,
                         String returnType,
                         boolean isXmlAttribute)
This method add a getter method.

Parameters:
classWriter - The object used to create the setter.
className - The name of the class.
propertyName - The name of the property of the getter.
returnType - The type of the property of the getter.
isXmlAttribute - if True, adds the XmlAttribute annotation to the method (useful for exception mapping)


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