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 | Description |
---|---|---|
protected java.lang.StringBuffer |
currentLiteral |
|
protected FormattingInfo |
formattingInfo |
|
protected int |
i |
|
protected java.lang.String |
pattern |
|
protected int |
patternLength |
Constructor | Description |
---|---|
PatternParser(java.lang.String pattern) |
Modifier and Type | Method | 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 2000-2007 Apache Software Foundation.