|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.semantics.tools.MetadataCompilerUtils
public class MetadataCompilerUtils
This class has all the constants which are needed by the compiler.
| Field Summary | |
|---|---|
static java.lang.String |
COMMENT
|
static java.io.PrintWriter |
directBindingTranslationScope
|
static java.lang.String |
END_JAVA_DOC
|
static int |
GENERATE_FIELDS_PASS
|
static int |
GENERATE_METHODS_PASS
|
static java.lang.String |
GENERATED_METADATA_TRANSLATIONS
|
static java.io.PrintWriter |
generatedTranslationScope
|
static java.lang.String |
IMPORTS
|
static java.lang.String |
PACKAGE
|
static java.lang.String |
PACKAGE_NAME
|
static java.lang.String |
START_JAVA_DOC
|
| Constructor Summary | |
|---|---|
MetadataCompilerUtils()
|
|
| Method Summary | |
|---|---|
static void |
appendBlankConstructor(java.lang.Appendable appendable,
java.lang.String className)
This method appends blank constructor |
static void |
appendConstructor(java.lang.Appendable appendable,
java.lang.String className)
This appends a constructor with call to super. |
static void |
appendToTranslationScope(java.lang.String append)
It appends the specified String to the translation scope class. |
static void |
createTranslationScopeClass(java.lang.String generationPath)
Creates a class for writing translation scope for generated classes. |
static void |
endTranslationScopeClass()
This metod adds the get() method to generated tralation scope and flushes the class out. |
static java.lang.String |
getGenerationPath(java.lang.String packageName)
This method returns the path where the generated files are to be placed. |
static void |
main(java.lang.String[] args)
|
static void |
writeJavaDocComment(java.lang.String comment,
java.lang.Appendable f)
TODO change this to write to file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PACKAGE_NAME
public static final java.lang.String START_JAVA_DOC
public static final java.lang.String END_JAVA_DOC
public static final java.lang.String COMMENT
public static final java.lang.String IMPORTS
public static final java.lang.String PACKAGE
public static final java.lang.String GENERATED_METADATA_TRANSLATIONS
public static java.io.PrintWriter generatedTranslationScope
public static java.io.PrintWriter directBindingTranslationScope
public static int GENERATE_FIELDS_PASS
public static int GENERATE_METHODS_PASS
| Constructor Detail |
|---|
public MetadataCompilerUtils()
| Method Detail |
|---|
public static void writeJavaDocComment(java.lang.String comment,
java.lang.Appendable f)
throws java.io.IOException
comment -
java.io.IOExceptionpublic static java.lang.String getGenerationPath(java.lang.String packageName)
packageName - The package in which generated files are to be placed.
public static void main(java.lang.String[] args)
public static void appendBlankConstructor(java.lang.Appendable appendable,
java.lang.String className)
throws java.io.IOException
java.io.IOException
public static void appendConstructor(java.lang.Appendable appendable,
java.lang.String className)
throws java.io.IOException
java.io.IOExceptionpublic static void appendToTranslationScope(java.lang.String append)
append - public static void endTranslationScopeClass()
public static void createTranslationScopeClass(java.lang.String generationPath)
throws java.io.IOException
generationPath -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||