org.codehaus.annogen.generate
Class Annogen

java.lang.Object
  extended by org.codehaus.annogen.generate.Annogen

public class Annogen
extends java.lang.Object

Code generator for AnnoBeans which can be driven programmatically or from the command line. This is wrapped by Annogentask - if you use ant for your build, it's probably easirer to use that instead.

Author:
Patrick Calahan <email: pcal-at-bea-dot-com>

Field Summary
static java.lang.String ANNOBEAN_FOR_FIELD
           
static java.lang.String SETTER_PREFIX
           
 
Constructor Summary
Annogen()
           
 
Method Summary
 void addAnnotationClasses(JClass[] classes)
           
 void doCodegen()
           
static java.lang.String getDefaultAnnobeanClassnameFor(JClass jsr175type)
          Returns the annobean type name to use when the jsr175 type doesn't match any of the task's mapping elements.
static void main(java.lang.String[] args)
           
 void setClasspath(java.io.File[] cp)
           
 void setImplementAnnotationTypes(boolean b)
           
 void setKeepGenerated(boolean b)
           
 void setMappings(AnnoBeanMapping[] mappings)
           
 void setOutputDir(java.io.File dir)
           
 void setOutputEncoding(java.lang.String enc)
          Sets the character encoding to use for generating anno beans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANNOBEAN_FOR_FIELD

public static final java.lang.String ANNOBEAN_FOR_FIELD
See Also:
Constant Field Values

SETTER_PREFIX

public static final java.lang.String SETTER_PREFIX
See Also:
Constant Field Values
Constructor Detail

Annogen

public Annogen()
Method Detail

addAnnotationClasses

public void addAnnotationClasses(JClass[] classes)

setOutputDir

public void setOutputDir(java.io.File dir)

setKeepGenerated

public void setKeepGenerated(boolean b)

setMappings

public void setMappings(AnnoBeanMapping[] mappings)

setClasspath

public void setClasspath(java.io.File[] cp)

doCodegen

public void doCodegen()
               throws java.io.IOException
Throws:
java.io.IOException

setImplementAnnotationTypes

public void setImplementAnnotationTypes(boolean b)

setOutputEncoding

public void setOutputEncoding(java.lang.String enc)
Sets the character encoding to use for generating anno beans. If not set, the vm default is used.


getDefaultAnnobeanClassnameFor

public static java.lang.String getDefaultAnnobeanClassnameFor(JClass jsr175type)
Returns the annobean type name to use when the jsr175 type doesn't match any of the task's mapping elements.


main

public static void main(java.lang.String[] args)