Package com.google.common.flogger.parser
Class DefaultPrintfMessageParser
- java.lang.Object
-
- com.google.common.flogger.parser.MessageParser
-
- com.google.common.flogger.parser.PrintfMessageParser
-
- com.google.common.flogger.parser.DefaultPrintfMessageParser
-
public class DefaultPrintfMessageParser extends PrintfMessageParser
Default implementation of the printf message parser. This parser supports all the place-holders available inString#formatbut can be extended, if desired, for additional behavior For consistency it is recommended, but not required, that custom printf parsers always extend from this class.This class is immutable and thread safe (and any subclasses must also be so).
-
-
Field Summary
-
Fields inherited from class com.google.common.flogger.parser.MessageParser
MAX_ARG_COUNT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrintfMessageParsergetInstance()intparsePrintfTerm(MessageBuilder<?> builder, int index, String message, int termStart, int specStart, int formatStart)-
Methods inherited from class com.google.common.flogger.parser.PrintfMessageParser
parseImpl, unescape
-
-
-
-
Method Detail
-
getInstance
public static PrintfMessageParser getInstance()
-
parsePrintfTerm
public int parsePrintfTerm(MessageBuilder<?> builder, int index, String message, int termStart, int specStart, int formatStart) throws ParseException
- Throws:
ParseException
-
-