Class ThenOrElseActionBase
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.joran.action.Action
-
- ch.qos.logback.core.joran.conditional.ThenOrElseActionBase
-
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
ElseAction,ThenAction
public abstract class ThenOrElseActionBase extends Action
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Stack<ThenActionState>stateStack-
Fields inherited from class ch.qos.logback.core.joran.action.Action
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, KEY_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, SCOPE_ATTRIBUTE, VALUE_ATTRIBUTE
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description ThenOrElseActionBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbegin(InterpretationContext ic, java.lang.String name, org.xml.sax.Attributes attributes)Called when the parser encounters an element matching aPattern.voidend(InterpretationContext ic, java.lang.String name)(package private) abstract voidregisterEventList(IfAction ifAction, java.util.List<SaxEvent> eventList)(package private) voidremoveFirstAndLastFromList(java.util.List<SaxEvent> eventList)(package private) booleanweAreActive(InterpretationContext ic)-
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, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
stateStack
java.util.Stack<ThenActionState> stateStack
-
-
Method Detail
-
begin
public void begin(InterpretationContext ic, java.lang.String name, org.xml.sax.Attributes attributes) throws ActionException
Description copied from class:ActionCalled when the parser encounters an element matching aPattern.- Specified by:
beginin classAction- Throws:
ActionException
-
weAreActive
boolean weAreActive(InterpretationContext ic)
-
end
public void end(InterpretationContext ic, java.lang.String name) throws ActionException
- Specified by:
endin classAction- Throws:
ActionException
-
registerEventList
abstract void registerEventList(IfAction ifAction, java.util.List<SaxEvent> eventList)
-
removeFirstAndLastFromList
void removeFirstAndLastFromList(java.util.List<SaxEvent> eventList)
-
-