|
Log4j 1.3alpha-3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.pattern.PatternParser
Most of the work of the PatternLayout
class
is delegated to the PatternParser class.
It is this class that parses conversion patterns and creates
a chained list of OptionConverters
.
Field Summary | |
protected java.lang.StringBuffer |
currentLiteral
|
protected FormattingInfo |
formattingInfo
|
protected int |
i
|
protected java.lang.String |
pattern
|
protected int |
patternLength
|
Constructor Summary | |
PatternParser(java.lang.String pattern)
|
Method Summary | |
protected void |
addConverter(PatternConverter pc)
|
protected java.lang.String |
extractConverter(char lastChar)
Extract the converter identifier found at position i. |
protected java.lang.String |
extractOption()
Returns the option, null if not in the expected format. |
protected void |
finalizeConverter(char c)
When finalizeConverter is called 'c' is the current conversion caracter and i points to the character following 'c'. |
java.util.HashMap |
getConverterRegistry()
Returns the converter registry for this PatternParser instance. |
PatternConverter |
parse()
|
void |
setConverterRegistry(java.util.HashMap converterRegistry)
Set the converter registry for this PatternParser instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.StringBuffer currentLiteral
protected int patternLength
protected int i
protected FormattingInfo formattingInfo
protected java.lang.String pattern
Constructor Detail |
public PatternParser(java.lang.String pattern)
Method Detail |
protected java.lang.String extractConverter(char lastChar)
protected java.lang.String extractOption()
public PatternConverter parse()
protected void finalizeConverter(char c)
protected void addConverter(PatternConverter pc)
public java.util.HashMap getConverterRegistry()
public void setConverterRegistry(java.util.HashMap converterRegistry)
|
Log4j 1.3alpha-3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |