|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.resgen.AbstractGenerator
abstract class AbstractGenerator
Abstract base for all generators.
Constructor Summary | |
---|---|
AbstractGenerator(File srcFile,
File file)
|
Method Summary | |
---|---|
protected void |
generateDoNotModifyHeader(PrintWriter pw)
|
protected void |
generateGeneratedByBlock(PrintWriter pw)
|
protected abstract void |
generateResource(ResourceDef.Resource resource,
PrintWriter pw)
Generates code for a particular resource. |
protected abstract 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 |
getArgumentList(String message)
|
protected abstract String |
getBaseClassName()
Returns the fully-qualified name of the base class. |
protected abstract String |
getClassName()
Returns the fully-qualified name of the class being generated, for example "happy.BirthdayResource_en_US". |
protected File |
getFile()
Returns the generator's output file. |
protected String |
getParameterList(String message)
Returns a parameter list string, e.g. |
protected String |
getSrcFileForComment()
Returns the XML or .properties source file, in a manner suitable for use in source code comments. |
void |
setScmSafeComments(boolean enabled)
Configures whether this generator will output comments that may be submitted to a source code management system. |
protected boolean |
useScmSafeComments()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eigenbase.resgen.Generator |
---|
generateModule |
Constructor Detail |
---|
public AbstractGenerator(File srcFile, File file)
Method Detail |
---|
public void setScmSafeComments(boolean enabled)
Generator
setScmSafeComments
in interface Generator
protected boolean useScmSafeComments()
protected abstract void generateResource(ResourceDef.Resource resource, PrintWriter pw)
protected void generateDoNotModifyHeader(PrintWriter pw)
protected void generateGeneratedByBlock(PrintWriter pw)
protected File getFile()
protected String getSrcFileForComment()
setScmSafeComments(boolean)
protected abstract String getClassName()
protected abstract String getBaseClassName()
protected String getParameterList(String message)
protected abstract String[] getArgTypes(String message)
protected String getArgumentList(String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |