public abstract class SimpleJavaGenerator extends BasicJavaGenerator
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_CODE_END |
static String |
CUSTOM_CODE_START |
static String |
CUSTOM_IMPORT_END |
static String |
CUSTOM_IMPORT_START |
static String |
PROP_AUTHOR |
static String |
PROP_CLASS_COMMENT |
static String |
PROP_VERSION |
static String |
STYLE_CLASS |
static String |
STYLE_INTERFACE |
logger
Constructor and Description |
---|
SimpleJavaGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSerialVerUID() |
protected void |
beforeClass() |
protected void |
customPartWorker(String startTag,
String endTag,
String indent) |
void |
generate() |
abstract void |
generateBody() |
protected Properties |
getConfig() |
protected String |
getExtendsClass() |
protected String |
getImplementsInterface() |
protected String |
getJavaStyle() |
void |
init(File sourceFolder,
String fullObjectBName,
String javaStyle,
Properties config) |
void |
init(File sourceFolder,
String fullObjectBName,
String javaStyle,
Properties config,
String lineSeparator) |
boolean |
isNoCustomComment() |
protected void |
setConfig(Properties config) |
protected void |
setExtendsClass(String extendsClass) |
protected void |
setImplementsInterface(String implementsInterface) |
protected void |
setJavaStyle(String javaStyle) |
void |
setNoCustomComment(boolean noCustomComment) |
customPartWorker, customPartWorker, getContent, getImportList, getJavaFile, getJavaName, getPackageName, getWriter, init, init, println, println, printlnWithTabs, setJavaFile, write
public static final String PROP_VERSION
public static final String PROP_AUTHOR
public static final String PROP_CLASS_COMMENT
public static final String STYLE_CLASS
public static final String STYLE_INTERFACE
public static final String CUSTOM_CODE_START
public static final String CUSTOM_CODE_END
public static final String CUSTOM_IMPORT_START
public static final String CUSTOM_IMPORT_END
public void init(File sourceFolder, String fullObjectBName, String javaStyle, Properties config, String lineSeparator) throws ConfigException
ConfigException
public void init(File sourceFolder, String fullObjectBName, String javaStyle, Properties config) throws ConfigException
ConfigException
public boolean isNoCustomComment()
public void setNoCustomComment(boolean noCustomComment)
protected Properties getConfig()
protected void setConfig(Properties config)
protected String getJavaStyle()
protected void setJavaStyle(String javaStyle)
protected String getExtendsClass()
protected void setExtendsClass(String extendsClass)
protected String getImplementsInterface()
protected void setImplementsInterface(String implementsInterface)
protected void beforeClass()
public void generate() throws Exception
generate
in interface JavaGenerator
generate
in class BasicJavaGenerator
Exception
protected void customPartWorker(String startTag, String endTag, String indent) throws FileNotFoundException, IOException
FileNotFoundException
IOException
protected void addSerialVerUID() throws IOException
IOException
Copyright © 2022 Fugerit. All rights reserved.