|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dishevelled.codegen.Codegen
public final class Codegen
Static source code generation methods.
| Method Summary | |
|---|---|
static void |
generateAbstractUnitTest(InterfaceDescription id)
Generate an abstract unit test java source file for the specified interface description. |
static void |
generateBuilderSource(ClassDescription cd,
Style style)
Generate a java source file for a fluent builder API for the specified class description and style. |
static void |
generateEnum(ClassDescription cd)
Generate an enum source file for the specified class description. |
static void |
generateEnumWithLookup(ClassDescription cd)
Generate an enum with lookup source file for the specified class description. |
static void |
generateSource(ClassDescription cd,
Style style)
Generate a java source file for the specified class description and style. |
static void |
generateSource(InterfaceDescription id)
Generate a java source file for the specified interface description. |
static void |
generateUnitTest(ClassDescription cd,
Style style)
Generate a unit test source file for the specified class description and style. |
static String |
readLicense(String license)
Read license text from the specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String readLicense(String license)
license - license file to read
public static void generateSource(InterfaceDescription id)
id - interface description, must not be nullpublic static void generateAbstractUnitTest(InterfaceDescription id)
id - interface description, must not be null
public static void generateSource(ClassDescription cd,
Style style)
cd - class description, must not be nullstyle - style, must not be null
public static void generateBuilderSource(ClassDescription cd,
Style style)
cd - class description, must not be nullstyle - style, must not be null
public static void generateUnitTest(ClassDescription cd,
Style style)
cd - class description, must not be nullstyle - style, must not be nullpublic static void generateEnum(ClassDescription cd)
cd - class description, must not be nullpublic static void generateEnumWithLookup(ClassDescription cd)
cd - class description, must not be null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||