|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.gen.BeanCodeGen
public class BeanCodeGen
Code generator for the beans.
This reads in a .java file, parses it, and writes out an updated version.
| Constructor Summary | |
|---|---|
BeanCodeGen(List<File> files,
BeanGenConfig config,
int verbosity,
boolean write)
Creates the generator for a single bean. |
|
BeanCodeGen(List<File> files,
String indent,
String prefix,
int verbosity,
boolean write)
Deprecated. Use BeanGenConfig constructor |
|
| Method Summary | |
|---|---|
static BeanCodeGen |
createFromArgs(String[] args)
Creates an instance of BeanCodeGen from arguments. |
static void |
main(String[] args)
Main method. |
int |
process()
Processes the file, recursing as necessary, generating the code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public BeanCodeGen(List<File> files,
String indent,
String prefix,
int verbosity,
boolean write)
To generate, use process().
files - the files to process, not nullindent - the indent to use, which will be directly inserted in the output, not nullprefix - the prefix to use, which will be directly inserted in the output, not nullverbosity - the verbosity, from 0 to 3write - whether to write or not
public BeanCodeGen(List<File> files,
BeanGenConfig config,
int verbosity,
boolean write)
To generate, use process().
files - the files to process, not nullconfig - the configuration to use, not nullverbosity - the verbosity, from 0 to 3write - whether to write or not| Method Detail |
|---|
public static void main(String[] args)
This calls System.exit.
args - the arguments, not nullpublic static BeanCodeGen createFromArgs(String[] args)
BeanCodeGen from arguments.
This is intended for tools and does not call System.exit.
args - the arguments, not null
RuntimeException - if unable to create
public int process()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||