|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.action.Action
chapter10.calculator.LiteralAction
public class LiteralAction
This action converts the value attribute of the associated element to an integer and pushes the resulting Integer object on top of the execution context stack.
It also illustrates usage of Joran's error reporting/handling paradigm.
Field Summary | |
---|---|
static String |
VALUE_ATR
|
Fields inherited from class ch.qos.logback.core.joran.action.Action |
---|
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, VALUE_ATTRIBUTE |
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
context |
Constructor Summary | |
---|---|
LiteralAction()
|
Method Summary | |
---|---|
void |
begin(InterpretationContext ic,
String name,
Attributes attributes)
Called when the parser encounters an element matching a Pattern . |
void |
end(InterpretationContext ic,
String name)
|
Methods inherited from class ch.qos.logback.core.joran.action.Action |
---|
body, getColumnNumber, getLineColStr, getLineNumber, toString |
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String VALUE_ATR
Constructor Detail |
---|
public LiteralAction()
Method Detail |
---|
public void begin(InterpretationContext ic, String name, Attributes attributes)
Action
Pattern
.
begin
in class Action
public void end(InterpretationContext ic, String name)
end
in class Action
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |