com.google.javascript.jscomp
Class LightweightMessageFormatter
java.lang.Object
com.google.javascript.jscomp.AbstractMessageFormatter
com.google.javascript.jscomp.LightweightMessageFormatter
- All Implemented Interfaces:
- MessageFormatter
public class LightweightMessageFormatter
- extends AbstractMessageFormatter
Lightweight message formatter. The format of messages this formatter
produces is very compact and to the point.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LightweightMessageFormatter
public LightweightMessageFormatter(SourceExcerptProvider source)
LightweightMessageFormatter
public LightweightMessageFormatter(SourceExcerptProvider source,
SourceExcerptProvider.SourceExcerpt excerpt)
formatError
public String formatError(JSError error)
- Description copied from interface:
MessageFormatter
- Format an error.
formatWarning
public String formatWarning(JSError warning)
- Description copied from interface:
MessageFormatter
- Format a warning.