MessageParser

public abstract class MessageParser

Base class from which any specific message parsers are derived (e.g. PrintfMessageParser and BraceStyleMessageParser).

See also

<a href="https://github.com/google/flogger/blob/cb9e836a897d36a78309ee8badf5cad4e6a2d3d8/api/src/main/java/com/google/common/flogger/parser/MessageParser.java">

Original Java code of Google Flogger

Inheritors

Constructors

Link copied to clipboard
public void MessageParser()

Properties

Link copied to clipboard
public final static int MAX_ARG_COUNT
The maximum allowed index (this should correspond to the MAX_ALLOWED_WIDTH in FormatOptions because at times it is ambiguous as to which is being parsed).

Functions

Link copied to clipboard
protected abstract void parseImpl<T>(MessageBuilder<T> builder)
Abstract parse method implemented by specific subclasses to modify parsing behavior.
Link copied to clipboard
public abstract void unescape(StringBuilder out, String message, int start, int end)
Appends the unescaped literal representation of the given message string (assumed to be escaped according to this parser's escaping rules).