Log4j 1.3alpha-4

org.apache.joran
Class ExecutionContext

java.lang.Object
  |
  +--org.apache.joran.ExecutionContext

public class ExecutionContext
extends java.lang.Object

The ExecutionContext contains the contextual state of a Joran parsing session. Actions depend on this context to exchange and store information.

Author:
Ceki Gülcü

Constructor Summary
ExecutionContext(Interpreter joranInterpreter)
           
 
Method Summary
 void addError(ErrorItem errorItem)
           
 void addProperties(java.util.Properties props)
           
 void addProperty(java.lang.String key, java.lang.String value)
          Add a property to the properties of this execution context.
 java.util.List getErrorList()
           
 Interpreter getJoranInterpreter()
           
 Locator getLocator()
           
 java.lang.Object getObject(int i)
           
 java.util.Map getObjectMap()
           
 java.util.Stack getObjectStack()
           
 java.lang.String getSubstitutionProperty(java.lang.String key)
           
 java.lang.Object peekObject()
           
 java.lang.Object popObject()
           
 void pushObject(java.lang.Object o)
           
 java.lang.String subst(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionContext

public ExecutionContext(Interpreter joranInterpreter)
Method Detail

addError

public void addError(ErrorItem errorItem)

getErrorList

public java.util.List getErrorList()

getLocator

public Locator getLocator()

getJoranInterpreter

public Interpreter getJoranInterpreter()

getObjectStack

public java.util.Stack getObjectStack()

peekObject

public java.lang.Object peekObject()

pushObject

public void pushObject(java.lang.Object o)

popObject

public java.lang.Object popObject()

getObject

public java.lang.Object getObject(int i)

getObjectMap

public java.util.Map getObjectMap()

addProperty

public void addProperty(java.lang.String key,
                        java.lang.String value)
Add a property to the properties of this execution context. If the property exists already, it is overwritten.


addProperties

public void addProperties(java.util.Properties props)

getSubstitutionProperty

public java.lang.String getSubstitutionProperty(java.lang.String key)

subst

public java.lang.String subst(java.lang.String value)

Log4j 1.3alpha-4

Copyright 2000-2003 Apache Software Foundation.