| |
|
| java.lang.Object org.apache.velocity.context.InternalContextBase
All known Subclasses: org.apache.velocity.context.AbstractContext,
InternalContextBase | class InternalContextBase implements InternalHousekeepingContext,InternalEventContext(Code) | | class to encapsulate the 'stuff' for internal operation of velocity.
We use the context as a thread-safe storage : we take advantage of the
fact that it's a visitor of sorts to all nodes (that matter) of the
AST during init() and render().
Currently, it carries the template name for namespace
support, as well as node-local context data introspection caching.
Note that this is not a public class. It is for package access only to
keep application code from accessing the internals, as AbstractContext
is derived from this.
author: Geir Magnusson Jr. version: $Id: InternalContextBase.java 463298 2006-10-12 16:10:32Z henning $ |
getCurrentTemplateName | public String getCurrentTemplateName()(Code) | | get the current template name
String current template name |
getTemplateNameStack | public Object[] getTemplateNameStack()(Code) | | get the current template name stack
Object[] with the template name stack contents. |
icacheGet | public IntrospectionCacheData icacheGet(Object key)(Code) | | returns an IntrospectionCache Data (@see IntrospectionCacheData)
object if exists for the key
Parameters: key - key to find in cache cache object |
icachePut | public void icachePut(Object key, IntrospectionCacheData o)(Code) | | places an IntrospectionCache Data (@see IntrospectionCacheData)
element in the cache for specified key
Parameters: key - key Parameters: o - IntrospectionCacheData object to place in cache |
popCurrentTemplateName | public void popCurrentTemplateName()(Code) | | remove the current template name from stack
|
pushCurrentTemplateName | public void pushCurrentTemplateName(String s)(Code) | | set the current template name on top of stack
Parameters: s - current template name |
|
|
|