|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.pattern.PatternParser
public final class 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 PatternConverters
.
Constructor Summary | |
---|---|
PatternParser(Configuration config,
String converterKey,
Class<?> expected)
Constructor. |
|
PatternParser(String converterKey)
Constructor. |
Method Summary | |
---|---|
boolean |
handlesExceptions()
|
List<PatternFormatter> |
parse(String pattern)
|
void |
parse(String pattern,
List<PatternConverter> patternConverters,
List<FormattingInfo> formattingInfos)
Parse a format specifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatternParser(String converterKey)
converterKey
- The type of converters that will be used.public PatternParser(Configuration config, String converterKey, Class<?> expected)
config
- The current Configuration.converterKey
- The key to lookup the converters.expected
- The expected base Class of each Converter.Method Detail |
---|
public List<PatternFormatter> parse(String pattern)
public boolean handlesExceptions()
public void parse(String pattern, List<PatternConverter> patternConverters, List<FormattingInfo> formattingInfos)
pattern
- pattern to parse.patternConverters
- list to receive pattern converters.formattingInfos
- list to receive field specifiers corresponding to pattern converters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |