Method Summary |
|
public void | debugMessage(String message) This method should be called to print out a message with a source
position link during the processing. |
public int | getComplianceLevel() Gets the Java version compliance level. |
public FileGenerator<? extends CtElement> | getDefaultFileGenerator() Returns the default file generator for this environment (gives the
default output directory for the created files). |
ProcessingManager | getManager() Gets the processing manager. |
ProcessorProperties | getProcessorProperties(String processorName) Returns the properties for a given processor. |
String | getSourcePath() |
int | getTabulationSize() Gets the size of the tabulations in the generated source code. |
public boolean | isDebug() Returns true if Spoon is in debug mode. |
public boolean | isProcessingStopped() Tells if the processing is stopped, generally because one of the
processors called
Environment.setProcessingStopped(boolean) after reporting
an error. |
boolean | isUsingSourceCodeFragments() Tells if the code generation use code fragments. |
boolean | isUsingTabulations() Tells if Spoon uses tabulations in the source code. |
public boolean | isVerbose() Returns true if Spoon is in verbose mode. |
public void | report(Processor> processor, Severity severity, CtElement element, String message) Helper method called by a processor to report an error, warning or
message as dictated by the severity parameter. |
public void | report(Processor> processor, Severity severity, CtElement element, String message, ProblemFixer>... fixes) Helper method called by a processor to report an error, warning or
message as dictated by the severity parameter. |
public void | report(Processor> processor, Severity severity, String message) This method should be called to print out a message during the
processing.
Parameters: processor - The processor that report this message. |
public void | reportEnd() This method should be called to report the end of the processing. |
public void | reportProgressMessage(String message) This method should be called to print out a progress message during the
processing. |
public void | setComplianceLevel(int level) Sets the Java version compliance level. |
public void | setDebug(boolean debug) Sets the debug mode. |
void | setDefaultFileGenerator(FileGenerator<? extends CtElement> generator) Sets the default file generator for this environment. |
void | setManager(ProcessingManager manager) Sets the processing manager of this environment. |
void | setProcessingStopped(boolean processingStopped) This method can be called to stop the processing and all the remaining
tasks. |
void | setProcessorProperties(String processorName, ProcessorProperties prop) Sets the properties for a given processor. |
void | setTabulationSize(int size) Sets the size of the tabulations in the generated source code. |
void | setVerbose(boolean verbose) Sets/unsets the verbose mode. |
void | useSourceCodeFragments(boolean b) Sets the code generation to use code fragments. |
void | useTabulations(boolean b) Sets Spoon to use tabulations in the source code. |