public final class Environment extends Support
Constructor and Description |
---|
Environment()
The constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N
public void setDoTimingStatistics(boolean dontOpt)
public boolean doTimingStatistics()
public void error(String error)
public void warning(String warn)
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()
Copyright © 2020. All rights reserved.