|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.enhancer.util.Assertion
com.sun.jdo.api.persistence.enhancer.util.Support
com.sun.jdo.api.persistence.enhancer.impl.Environment
public final class Environment
Environment serves as a central collection for the options and working environment of the filter tool.
| Field Summary |
|---|
| Fields inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
timer |
| Constructor Summary | |
|---|---|
Environment()
The constructor |
|
| Method Summary | |
|---|---|
void |
addClass(ClassControl cc)
Add the class to the class mapping table. |
boolean |
canFindClass(String className)
Look for the specified class in the class map. |
ArrayList |
collectClasses()
Return an ArrayList of the ClassControls in classMap. |
ArrayList |
collectClasses(int persistType)
Return a ArrayList of ClassControl objects which have the specified persistence type |
File |
destinationDirectory()
|
boolean |
doInitializerOptimization()
|
boolean |
doThisOptimization()
|
boolean |
doTimingStatistics()
|
void |
error(String error)
|
int |
errorCount()
|
void |
excludeDestinationDirectory()
Update the class path to remove the destination directory if it is found in the class path. |
ClassControl |
findClass(String className)
Look for the specified class in the class map. |
boolean |
forceOverwrite()
|
ClassControl |
getClass(String className)
Look for the specified class in the class map. |
Iterator |
getClasses()
|
PrintWriter |
getErrorWriter()
|
JDOMetaData |
getJDOMetaData()
Is the class a well known persistent capable class? These are normally the java primitives. |
String |
getLastErrorMessage()
|
PrintWriter |
getOutputWriter()
|
boolean |
isVerbose()
|
ClassControl |
lookupClass(String className)
Look up the specified class in the class search path. |
ClassFileSource |
lookupDestClass(String className)
Look for a class source using the destination directory as a root directory for the lookup which represents the annotated output for the class specified. |
void |
message(String mess)
|
void |
messageNL(String mess)
|
void |
moveDestinationDirectoryToEnd()
Update the class path to move the destination directory to the end of the class path if it is found in the class path. |
void |
reset()
Reset the environment. |
void |
setDestinationDirectory(String dir)
|
void |
setDoTimingStatistics(boolean dontOpt)
|
void |
setErrorWriter(PrintWriter err)
|
void |
setForceOverwrite(boolean forceOverwrite)
|
void |
setJDOMetaData(JDOMetaData jdoMetaData)
|
void |
setNoInitializerOptimization(boolean dontOpt)
|
void |
setNoOptimization(boolean dontOpt)
|
void |
setNoThisOptimization(boolean dontOpt)
|
void |
setNoWrite(boolean dontWrite)
|
void |
setOutputWriter(PrintWriter out)
|
void |
setQuiet(boolean beQuiet)
|
void |
setVerbose(boolean beVerbose)
|
void |
suppressClassWarnings(String className)
Add a suppression entry for a class |
void |
suppressFieldWarnings(String fullFieldName)
Add a suppression entry for a field of a class |
boolean |
updateInPlace()
|
void |
warning(String warn)
|
void |
warning(String warn,
String classname)
|
void |
warning(String warn,
String classname,
String fieldname)
|
boolean |
writeClasses()
Expected dump levels are 0, 1, 2, 3 dump level 0 is always on. |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Assertion |
|---|
affirm, affirm, affirm, affirm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Environment()
| Method Detail |
|---|
public void setDoTimingStatistics(boolean dontOpt)
public boolean doTimingStatistics()
public void error(String error)
public void warning(String warn)
public void warning(String warn,
String classname)
public void warning(String warn,
String classname,
String fieldname)
public void message(String mess)
public void messageNL(String mess)
public int errorCount()
public final String getLastErrorMessage()
public boolean forceOverwrite()
public boolean updateInPlace()
public File destinationDirectory()
public boolean writeClasses()
public boolean doThisOptimization()
public boolean doInitializerOptimization()
public JDOMetaData getJDOMetaData()
public void setJDOMetaData(JDOMetaData jdoMetaData)
public void addClass(ClassControl cc)
public boolean canFindClass(String className)
public ClassControl getClass(String className)
public Iterator getClasses()
public ClassControl findClass(String className)
public ClassControl lookupClass(String className)
public ArrayList collectClasses(int persistType)
public ArrayList collectClasses()
public ClassFileSource lookupDestClass(String className)
public void setDestinationDirectory(String dir)
public void excludeDestinationDirectory()
public void moveDestinationDirectoryToEnd()
public void setOutputWriter(PrintWriter out)
public PrintWriter getOutputWriter()
public void setErrorWriter(PrintWriter err)
public PrintWriter getErrorWriter()
public void setVerbose(boolean beVerbose)
public boolean isVerbose()
public void setQuiet(boolean beQuiet)
public void setNoWrite(boolean dontWrite)
public void setNoThisOptimization(boolean dontOpt)
public void setNoInitializerOptimization(boolean dontOpt)
public void setNoOptimization(boolean dontOpt)
public void setForceOverwrite(boolean forceOverwrite)
public void suppressClassWarnings(String className)
public void suppressFieldWarnings(String fullFieldName)
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||