Top Description Fields Constructors Methods
org.jboss.logmanager.formatters

public final Class FormatStringParser

extends Object
Class Inheritance
Imports
java.util.ArrayList, .TimeZone, java.util.regex.Matcher, .Pattern

A parser which can translate a log4j-style format string into a series of FormatStep instances.

Field Summary

Modifier and TypeField and Description
private static final Pattern
pattern

The regular expression for format strings.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FormatStep[]

Returns:

the format steps
getSteps
(final String
the format string
formatString
,
ColorMap colors)

Compile a format string into a series of format steps.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

patternback to summary
private static final Pattern pattern

The regular expression for format strings. Ain't regex grand?

Constructor Detail

FormatStringParserback to summary
private FormatStringParser()

Method Detail

getStepsback to summary
public static FormatStep[] getSteps(final String formatString, ColorMap colors)

Compile a format string into a series of format steps.

Parameters
formatString:String

the format string

Returns:FormatStep[]

the format steps