| org.hammurapi.InspectorContext
All known Subclasses: org.hammurapi.InspectorContextBase,
InspectorContext | public interface InspectorContext extends Attributable(Code) | | author: Pavel Vlasov version: $Revision: 1.8 $ |
Method Summary | |
void | addMetric(SourceMarker source, String name, double value) | void | annotate(Annotation annotation) | void | debug(SourceMarker source, String message) | public SourceMarker | detach(SourceMarker source) Helper method to avoid hard reference to Jsel objects. | InspectorDescriptor | getDescriptor() | Session | getSession() | VisitorStack | getVisitorStack() | void | info(SourceMarker source, String message) | void | reportViolation(SourceMarker source) | void | reportViolation(SourceMarker source, String message) | void | reportViolation(SourceMarker source, Object[] params) Formats message taken from InspectorDescriptor with parameters. | void | reportViolationEx(SourceMarker source, String messageKey) | void | reportViolationEx(SourceMarker source, Object[] params, String messageKey) Formats message taken from InspectorDescriptor with parameters. | void | verbose(SourceMarker source, String message) | void | waive(Signed signed, String inspectorKey) | void | warn(SourceMarker source, String message) | void | warn(SourceMarker source, Throwable th) |
addMetric | void addMetric(SourceMarker source, String name, double value)(Code) | | |
debug | void debug(SourceMarker source, String message)(Code) | | Outputs a message to the log
Parameters: source - Parameters: message - |
detach | public SourceMarker detach(SourceMarker source)(Code) | | Helper method to avoid hard reference to Jsel objects.
Parameters: source - |
getVisitorStack | VisitorStack getVisitorStack()(Code) | | Visitor stack of the master visitor
|
info | void info(SourceMarker source, String message)(Code) | | Outputs a message to the log
Parameters: source - Parameters: message - |
reportViolation | void reportViolation(SourceMarker source)(Code) | | Reports violation with a message from descriptor
Parameters: source - |
reportViolation | void reportViolation(SourceMarker source, String message)(Code) | | Parameters: source - Parameters: message - |
reportViolation | void reportViolation(SourceMarker source, Object[] params)(Code) | | Formats message taken from InspectorDescriptor with parameters.
Parameters: source - Parameters: params - |
reportViolationEx | void reportViolationEx(SourceMarker source, String messageKey)(Code) | | Reports violation with a message from descriptor
Parameters: source - |
reportViolationEx | void reportViolationEx(SourceMarker source, Object[] params, String messageKey)(Code) | | Formats message taken from InspectorDescriptor with parameters.
Parameters: source - Parameters: params - |
verbose | void verbose(SourceMarker source, String message)(Code) | | Outputs a message to the log
Parameters: source - Parameters: message - |
waive | void waive(Signed signed, String inspectorKey)(Code) | | Creates a waiver for inspector with a given key
Parameters: inspectorKey - |
warn | void warn(SourceMarker source, String message)(Code) | | Report warning
Parameters: source - Parameters: message - |
warn | void warn(SourceMarker source, Throwable th)(Code) | | Report warning
Parameters: source - Parameters: message - |
|
|