public class

PatternParser

extends Object
java.lang.Object
   ↳ org.apache.log4j.helpers.PatternParser
Known Direct Subclasses

Class Overview

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.

Summary

Fields
protected StringBuffer currentLiteral
protected FormattingInfo formattingInfo
protected int i
protected String pattern
protected int patternLength
Public Constructors
PatternParser(String pattern)
Public Methods
PatternConverter parse()
Protected Methods
void addConverter(PatternConverter pc)
String extractOption()
int extractPrecisionOption()
The option is expected to be in decimal and positive.
void finalizeConverter(char c)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected StringBuffer currentLiteral

protected FormattingInfo formattingInfo

protected int i

protected String pattern

protected int patternLength

Public Constructors

public PatternParser (String pattern)

Public Methods

public PatternConverter parse ()

Protected Methods

protected void addConverter (PatternConverter pc)

protected String extractOption ()

protected int extractPrecisionOption ()

The option is expected to be in decimal and positive. In case of error, zero is returned.

protected void finalizeConverter (char c)