public class PatternParser extends Object
PatternLayout
class is delegated to the PatternParser class.
It is this class that parses conversion patterns and creates a chained list of
OptionConverters
.
Modifier and Type | Field and Description |
---|---|
protected StringBuffer |
currentLiteral |
protected FormattingInfo |
formattingInfo |
protected int |
i |
protected String |
pattern |
protected int |
patternLength |
Constructor and Description |
---|
PatternParser(String pattern) |
Modifier and Type | Method and Description |
---|---|
protected void |
addConverter(PatternConverter pc) |
protected String |
extractOption() |
protected int |
extractPrecisionOption()
The option is expected to be in decimal and positive.
|
protected void |
finalizeConverter(char c) |
PatternConverter |
parse() |
protected StringBuffer currentLiteral
protected int patternLength
protected int i
protected FormattingInfo formattingInfo
protected String pattern
public PatternParser(String pattern)
protected String extractOption()
protected int extractPrecisionOption()
public PatternConverter parse()
protected void finalizeConverter(char c)
protected void addConverter(PatternConverter pc)
Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.