CompoundFormatSteppublic interface FormatStep
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
FormatStep.ItemType |
An enumeration of the types of items that can be rendered.
|
| Modifier and Type | Field | Description |
|---|---|---|
static FormatStep[] |
NO_STEPS |
An array of no steps.
|
static FormatStep |
NULL_STEP |
| Modifier and Type | Method | Description |
|---|---|---|
default int |
childStepCount() |
|
default FormatStep[] |
childSteps() |
Get child steps that compose this step.
|
static FormatStep |
createCompoundStep(FormatStep... steps) |
|
int |
estimateLength() |
Emit an estimate of the length of data which this step will produce.
|
default FormatStep |
getChildStep(int idx) |
|
default FormatStep.ItemType |
getItemType() |
Get the item type of this step.
|
default boolean |
isCallerInformationRequired() |
Indicates whether or not caller information is required for this format step.
|
void |
render(StringBuilder builder,
ExtLogRecord record) |
Render a part of the log record.
|
default void |
render(Formatter formatter,
StringBuilder builder,
ExtLogRecord record) |
Render a part of the log record to the given formatter.
|
static final FormatStep[] NO_STEPS
static final FormatStep NULL_STEP
static FormatStep createCompoundStep(FormatStep... steps)
void render(StringBuilder builder, ExtLogRecord record)
builder - the string builder to append torecord - the record being rendereddefault void render(Formatter formatter, StringBuilder builder, ExtLogRecord record)
formatter - the formatter to render tobuilder - the string builder to append torecord - the record being renderedint estimateLength()
default boolean isCallerInformationRequired()
true if caller information is required, otherwise falsedefault FormatStep[] childSteps()
null)default int childStepCount()
default FormatStep getChildStep(int idx)
default FormatStep.ItemType getItemType()
Copyright © 2020 JBoss by Red Hat. All rights reserved.