Package ch.qos.logback.core.joran.spi
Class InterpretationContext
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.spi.InterpretationContext
- All Implemented Interfaces:
ContextAware,PropertyContainer
An InterpretationContext contains the contextual state of a Joran parsing
session.
Action objects depend on this context to exchange and store
information.- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionInterpretationContext(Context context, SaxEventInterpreter saxEventInterpreter) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependency(Model model, String ref) voidvoidaddSubstitutionProperty(String key, String value) Add a property to the properties of this execution context.getDependencies(Model model) actionDataStack contains ActionData instances We use a stack of ActionData objects in order to support nested elements which are handled by the same NestedComplexPropertyIA instance.getObject(int i) getProperty(String key) If a key is found in propertiesMap then return it.booleanhasDependencies(String name) booleanisEmpty()Deprecated.booleanbooleanbooleanvoidpopModel()voidvoidpushObject(Object o) Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
InterpretationContext
-
-
Method Details
-
getBeanDescriptionCache
-
getDefaultNestedComponentRegistry
-
getCopyOfPropertyMap
- Specified by:
getCopyOfPropertyMapin interfacePropertyContainer
-
getDependenciesMap
-
hasDependencies
-
addDependency
-
getDependencies
-
getLineNumber
-
getLocator
-
getSaxEventInterpreter
-
getObjectStack
-
isEmpty
public boolean isEmpty()Deprecated.UseisObjectStackEmpty()method instead- Returns:
-
isObjectStackEmpty
public boolean isObjectStackEmpty()- Returns:
- whether the objectStack is empty or not
-
peekObject
-
pushObject
-
popObject
-
getImplcitActionDataStack
actionDataStack contains ActionData instances We use a stack of ActionData objects in order to support nested elements which are handled by the same NestedComplexPropertyIA instance. We push a ActionData instance in the isApplicable method (if the action is applicable) and pop it in the end() method. The XML well-formedness property will guarantee that a push will eventually be followed by a corresponding pop. -
peekModel
-
pushModel
-
isModelStackEmpty
public boolean isModelStackEmpty() -
popModel
-
getCopyOfModelStack
-
getObject
-
getObjectMap
-
addSubstitutionProperty
Add a property to the properties of this execution context. If the property exists already, it is overwritten. -
addSubstitutionProperties
-
getProperty
If a key is found in propertiesMap then return it. Otherwise, delegate to the context.- Specified by:
getPropertyin interfacePropertyContainer
-
subst
-
markStartOfNamedDependency
-
isNamedDependencyStarted
-
isObjectStackEmpty()method instead