Class Interpreter
- java.lang.Object
-
- ch.qos.logback.core.joran.spi.Interpreter
-
@Deprecated(since="2022-01-27") public class Interpreter extends Object
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.Interpreter is Joran's main driving class. It extends SAXDefaultHandler
which invokes variousactions
according to predefined patterns.Patterns are kept in a
RuleStore
which is programmed to store and then later produce the applicable actions for a given pattern.The pattern corresponding to a top level <a> element is the string
"a" .The pattern corresponding to an element <b> embedded within a top level <a> element is the string
"a/b" .The pattern corresponding to an <b> and any level of nesting is "*/b. Thus, the * character placed at the beginning of a pattern serves as a wildcard for the level of nesting. Conceptually, this is very similar to the API of commons-digester. Joran offers several small advantages. First and foremost, it offers support for implicit actions which result in a significant leap in flexibility. Second, in our opinion better error reporting capability. Third, it is self-reliant. It does not depend on other APIs, in particular commons-logging which is too unreliable. Last but not least, Joran is quite tiny and is expected to remain so.
-
-
Constructor Summary
Constructors Constructor Description Interpreter(Context context, RuleStore rs, ElementPath initialElementPath)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addImplicitAction(ImplicitAction ia)
Deprecated.void
characters(BodyEvent be)
Deprecated.void
endElement(EndEvent endEvent)
Deprecated.EventPlayer
getEventPlayer()
Deprecated.InterpretationContext
getExecutionContext()
Deprecated.replaced bygetInterpretationContext()
InterpretationContext
getInterpretationContext()
Deprecated.Locator
getLocator()
Deprecated.RuleStore
getRuleStore()
Deprecated.void
setDocumentLocator(Locator l)
Deprecated.void
setInterpretationContextPropertiesMap(Map<String,String> propertiesMap)
Deprecated.void
startDocument()
Deprecated.void
startElement(StartEvent se)
Deprecated.
-
-
-
Constructor Detail
-
Interpreter
public Interpreter(Context context, RuleStore rs, ElementPath initialElementPath)
Deprecated.
-
-
Method Detail
-
getEventPlayer
public EventPlayer getEventPlayer()
Deprecated.
-
setInterpretationContextPropertiesMap
public void setInterpretationContextPropertiesMap(Map<String,String> propertiesMap)
Deprecated.
-
getExecutionContext
public InterpretationContext getExecutionContext()
Deprecated.replaced bygetInterpretationContext()
-
getInterpretationContext
public InterpretationContext getInterpretationContext()
Deprecated.
-
startDocument
public void startDocument()
Deprecated.
-
startElement
public void startElement(StartEvent se)
Deprecated.
-
characters
public void characters(BodyEvent be)
Deprecated.
-
endElement
public void endElement(EndEvent endEvent)
Deprecated.
-
getLocator
public Locator getLocator()
Deprecated.
-
setDocumentLocator
public void setDocumentLocator(Locator l)
Deprecated.
-
addImplicitAction
public void addImplicitAction(ImplicitAction ia)
Deprecated.
-
getRuleStore
public RuleStore getRuleStore()
Deprecated.
-
-