org.codehaus.annogen.generate
Class Annogen
java.lang.Object
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Annogen
public Annogen()
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)