org.joda.beans.gen
Class BeanCodeGen

java.lang.Object
  extended by org.joda.beans.gen.BeanCodeGen

public class BeanCodeGen
extends Object

Code generator for the beans.

This reads in a .java file, parses it, and writes out an updated version.

Author:
Stephen Colebourne

Constructor Summary
BeanCodeGen(File file, String indent, String prefix, int verbosity, boolean write)
          Creates the generator for a single bean.
 
Method Summary
static void main(String[] args)
          Main.
 boolean process()
          Processes the bean, generating the code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanCodeGen

public BeanCodeGen(File file,
                   String indent,
                   String prefix,
                   int verbosity,
                   boolean write)
Creates the generator for a single bean.

To generate, use process().

Parameters:
file - the file to process, not null
indent - the indent to use, not null
prefix - the prefix to use, not null
verbosity - the verbosity
write - whether to write or not
Method Detail

main

public static void main(String[] args)
Main.

Parameters:
args - the arguments, not null

process

public boolean process()
                throws Exception
Processes the bean, generating the code.

Returns:
true if changed
Throws:
Exception


Copyright © 2007-2013 Joda.org. All Rights Reserved.