org.eigenbase.resgen
abstract class AbstractJavaGenerator extends AbstractGenerator
Modifier and Type | Field and Description |
---|---|
protected String |
baseClassName |
protected String |
className |
protected ResourceDef.ResourceBundle |
resourceBundle |
Constructor and Description |
---|
AbstractJavaGenerator(File srcFile,
File file,
String className,
ResourceDef.ResourceBundle resourceBundle,
String baseClassName) |
Modifier and Type | Method and Description |
---|---|
protected void |
generateFooter(PrintWriter pw,
String className) |
protected void |
generateHeader(PrintWriter pw) |
protected String[] |
getArgTypes(String message)
Returns the number and types of parameters in the given error message,
expressed as an array of Strings (legal values are
currently "String", "Number", "java.util.Date", and null) ordered by
parameter number.
|
protected String |
getBaseClassName()
Returns the fully-qualified name of the base class.
|
protected String |
getClassName()
Returns the fully-qualified name of the class being generated,
for example "happy.BirthdayResource_en_US".
|
protected String |
getErrorClass(ResourceDef.Exception exception)
Returns the type of error which is to be thrown by this resource.
|
protected String |
getPackageName() |
generateDoNotModifyHeader, generateGeneratedByBlock, generateResource, getArgumentList, getFile, getParameterList, getSrcFileForComment, setScmSafeComments, useScmSafeComments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateModule
protected final ResourceDef.ResourceBundle resourceBundle
protected final String baseClassName
AbstractJavaGenerator(File srcFile, File file, String className, ResourceDef.ResourceBundle resourceBundle, String baseClassName)
protected String getErrorClass(ResourceDef.Exception exception)
protected String getPackageName()
protected String[] getArgTypes(String message)
AbstractGenerator
getArgTypes
in class AbstractGenerator
protected void generateHeader(PrintWriter pw)
protected void generateFooter(PrintWriter pw, String className)
protected String getClassName()
AbstractGenerator
getClassName
in class AbstractGenerator
protected String getBaseClassName()
AbstractGenerator
getBaseClassName
in class AbstractGenerator