| java.lang.Object spoon.support.StandardEnvironment
StandardEnvironment | public class StandardEnvironment implements Serializable,Environment(Code) | | This class implements a simple Spoon environment that reports messages in the
standard output stream (Java-compliant).
|
Method Summary | |
public void | debugMessage(String message) | public int | getComplianceLevel() | public FileGenerator<? extends CtElement> | getDefaultFileGenerator() | public Factory | getFactory() | public ProcessingManager | getManager() | public ProcessorProperties | getProcessorProperties(String processorName) | public String | getSourcePath() | public int | getTabulationSize() | public File | getXmlRootFolder() Gets the root folder where the processors' XML configuration files are
located. | public boolean | isDebug() | public boolean | isProcessingStopped() Tells if the processing is stopped, generally because one of the
processors called
StandardEnvironment.setProcessingStopped(boolean) after reporting
an error. | public boolean | isUsingSourceCodeFragments() | public boolean | isUsingTabulations() | public boolean | isVerbose() Returns true if Spoon is in verbose mode. | public void | report(Processor> processor, Severity severity, CtElement element, String message) | public void | report(Processor> processor, Severity severity, String message) | public void | report(Processor> processor, Severity severity, CtElement element, String message, ProblemFixer>... fix) | public void | reportEnd() This method should be called to report the end of the processing. | public void | reportProgressMessage(String message) | public void | setComplianceLevel(int level) | public void | setDebug(boolean debug) | public void | setDefaultFileGenerator(FileGenerator<? extends CtElement> defaultFileGenerator) | public void | setFactory(Factory factory) | public void | setManager(ProcessingManager manager) | public void | setProcessingStopped(boolean processingStopped) | public void | setProcessorProperties(String processorName, ProcessorProperties prop) | public void | setTabulationSize(int tabulationSize) | public void | setVerbose(boolean verbose) | public void | setXmlRootFolder(File xmlRootFolder) Sets the root folder where the processors' XML configuration files are
located. | public void | useSourceCodeFragments(boolean b) | public void | useTabulations(boolean tabulation) |
PROPERTIES_EXT | final public static String PROPERTIES_EXT(Code) | | The processors' properties files extension (.xml)
|
complianceLevel | int complianceLevel(Code) | | |
tabulationSize | int tabulationSize(Code) | | |
useSourceCodeFragments | boolean useSourceCodeFragments(Code) | | |
useTabulations | boolean useTabulations(Code) | | |
StandardEnvironment | public StandardEnvironment()(Code) | | Creates a new environment with a null default file
generator.
|
getComplianceLevel | public int getComplianceLevel()(Code) | | |
getTabulationSize | public int getTabulationSize()(Code) | | |
getXmlRootFolder | public File getXmlRootFolder()(Code) | | Gets the root folder where the processors' XML configuration files are
located.
|
isDebug | public boolean isDebug()(Code) | | |
isUsingSourceCodeFragments | public boolean isUsingSourceCodeFragments()(Code) | | |
isUsingTabulations | public boolean isUsingTabulations()(Code) | | |
isVerbose | public boolean isVerbose()(Code) | | Returns true if Spoon is in verbose mode.
|
reportEnd | public void reportEnd()(Code) | | This method should be called to report the end of the processing.
|
reportProgressMessage | public void reportProgressMessage(String message)(Code) | | |
setComplianceLevel | public void setComplianceLevel(int level)(Code) | | |
setDebug | public void setDebug(boolean debug)(Code) | | |
setProcessingStopped | public void setProcessingStopped(boolean processingStopped)(Code) | | |
setTabulationSize | public void setTabulationSize(int tabulationSize)(Code) | | |
setVerbose | public void setVerbose(boolean verbose)(Code) | | |
setXmlRootFolder | public void setXmlRootFolder(File xmlRootFolder)(Code) | | Sets the root folder where the processors' XML configuration files are
located.
|
useSourceCodeFragments | public void useSourceCodeFragments(boolean b)(Code) | | |
useTabulations | public void useTabulations(boolean tabulation)(Code) | | |
|
|