| Modifier and Type | Class and Description |
|---|---|
| public static interface | CodeGenUtils.
A class that emits source code of some time when activated. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | emitAutogeneratedWarning(final PrintWriter w, final Object
the object that is emitting the autogenerated code. If
null, the generator will not be mentioned in the warning message. generator)
|
| public static void | emitJavaHeaders(final PrintWriter w, final String packageName, final String className, final boolean isClassNotInterface, final List<String> imports, final String[] accessModifiers, final String[] interfaces, final String classExtended, final CodeGenUtils.
Emit the opening headers for one java class/interface file. |
| public static String | packageAsPath(final String packageName)
Given a java package name (e.g., "java.lang"), return the package as a directory path (i.e., "java/lang"). |
| CodeGenUtils | back to summary |
|---|---|
| public CodeGenUtils() | |
| emitAutogeneratedWarning | back to summary |
|---|---|
public static void emitAutogeneratedWarning(final PrintWriter w, final Object generator)
| |
| emitJavaHeaders | back to summary |
|---|---|
| public static void emitJavaHeaders(final PrintWriter w, final String packageName, final String className, final boolean isClassNotInterface, final List<String> imports, final String[] accessModifiers, final String[] interfaces, final String classExtended, final CodeGenUtils. Emit the opening headers for one java class/interface file. | |
| packageAsPath | back to summary |
|---|---|
| public static String packageAsPath(final String packageName) Given a java package name (e.g., "java.lang"), return the package as a directory path (i.e., "java/lang"). | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| emit | back to summary |
|---|---|
| public void emit(PrintWriter output) Emit appropriate source code through the given writer. | |