1 package spoon.processing; 2 3 import java.io.FileNotFoundException ; 4 import java.io.IOException ; 5 6 import spoon.reflect.declaration.CtElement; 7 8 13 public interface Environment extends FactoryAccessor { 14 15 18 public int getComplianceLevel(); 19 20 23 public void setComplianceLevel(int level); 24 25 29 public void debugMessage(String message); 30 31 35 public FileGenerator<? extends CtElement> getDefaultFileGenerator(); 36 37 40 ProcessingManager getManager(); 41 42 45 ProcessorProperties getProcessorProperties(String processorName) 46 throws FileNotFoundException , IOException ; 47 48 51 void setProcessorProperties(String processorName, ProcessorProperties prop); 52 53 56 public boolean isDebug(); 57 58 63 public boolean isProcessingStopped(); 64 65 68 public boolean isVerbose(); 69 70 85 public void report(Processor processor, Severity severity, 86 CtElement element, String message); 87 88 105 public void report(Processor processor, Severity severity, 106 CtElement element, String message, ProblemFixer... fixes); 107 108 119 public void report(Processor processor, Severity severity, String message); 120 121 124 public void reportEnd(); 125 126 132 public void reportProgressMessage(String message); 133 134 137 public void setDebug(boolean debug); 138 139 142 void setDefaultFileGenerator(FileGenerator<? extends CtElement> generator); 143 144 147 void setManager(ProcessingManager manager); 148 149 153 void setProcessingStopped(boolean processingStopped); 154 155 158 void setVerbose(boolean verbose); 159 } | Popular Tags |