1 23 package org.hammurapi; 24 25 import org.hammurapi.results.Annotation; 26 27 import com.pavelvlasov.review.Signed; 28 import com.pavelvlasov.review.SourceMarker; 29 import com.pavelvlasov.util.Attributable; 30 import com.pavelvlasov.util.VisitorStack; 31 32 36 public interface InspectorContext extends Attributable { 37 InspectorDescriptor getDescriptor(); 38 39 43 void reportViolation(SourceMarker source); 44 45 49 void reportViolationEx(SourceMarker source, String messageKey); 50 51 56 void reportViolation(SourceMarker source, String message); 57 58 void annotate(Annotation annotation); 59 60 void addMetric(SourceMarker source, String name, double value); 61 62 67 void reportViolation(SourceMarker source, Object [] params); 68 69 74 void reportViolationEx(SourceMarker source, Object [] params, 75 String messageKey); 76 77 82 void warn(SourceMarker source, String message); 83 84 89 void warn(SourceMarker source, Throwable th); 90 91 96 void info(SourceMarker source, String message); 97 98 103 void debug(SourceMarker source, String message); 104 105 110 void verbose(SourceMarker source, String message); 111 112 116 void waive(Signed signed, final String inspectorKey); 117 118 122 VisitorStack getVisitorStack(); 123 124 Session getSession(); 125 126 131 public SourceMarker detach(final SourceMarker source); 132 } | Popular Tags |