public class PatternParser
extends java.lang.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 java.lang.StringBuffer |
currentLiteral |
protected FormattingInfo |
formattingInfo |
protected int |
i |
protected java.lang.String |
pattern |
protected int |
patternLength |
Constructor and Description |
---|
PatternParser(java.lang.String pattern) |
Modifier and Type | Method and Description |
---|---|
protected void |
addConverter(PatternConverter pc) |
protected java.lang.String |
extractOption() |
protected int |
extractPrecisionOption()
The option is expected to be in decimal and positive.
|
protected void |
finalizeConverter(char c) |
PatternConverter |
parse() |
protected java.lang.StringBuffer currentLiteral
protected int patternLength
protected int i
protected FormattingInfo formattingInfo
protected java.lang.String pattern
protected java.lang.String extractOption()
protected int extractPrecisionOption()
public PatternConverter parse()
protected void finalizeConverter(char c)
protected void addConverter(PatternConverter pc)
Copyright © 1999-2022 Apache Software Foundation. All Rights Reserved.