Home » apache-log4j-1.2.16 » org.apache » log4j » helpers » [javadoc | source]
public class: PatternParser [javadoc | source]

Direct Known Subclasses:
    BridgePatternParser, MyPatternParser

Most of the work of the org.apache.log4j.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
static final  int FULL_LOCATION_CONVERTER     
static final  int METHOD_LOCATION_CONVERTER     
static final  int CLASS_LOCATION_CONVERTER     
static final  int LINE_LOCATION_CONVERTER     
static final  int FILE_LOCATION_CONVERTER     
static final  int RELATIVE_TIME_CONVERTER     
static final  int THREAD_CONVERTER     
static final  int LEVEL_CONVERTER     
static final  int NDC_CONVERTER     
static final  int MESSAGE_CONVERTER     
 int state     
protected  StringBuffer currentLiteral     
protected  int patternLength     
protected  int i     
 PatternConverter head     
 PatternConverter tail     
protected  FormattingInfo formattingInfo     
protected  String pattern     
 public PatternParser(String pattern) 
Method from org.apache.log4j.helpers.PatternParser Summary:
addConverter,   extractOption,   extractPrecisionOption,   finalizeConverter,   parse
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.helpers.PatternParser Detail:
 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) 
 public PatternConverter parse()