|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.apache.velocity.context.InternalContextBase
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.
| フィールドの概要 | |
private Resource |
currentResource
Current resource - used for carrying encoding and other information down into the rendering process |
private EventCartridge |
eventCartridge
EventCartridge we are to carry. |
private java.util.HashMap |
introspectionCache
cache for node/context specific introspection information |
private java.util.Stack |
templateNameStack
Template name stack. |
| コンストラクタの概要 | |
(パッケージプライベート) |
InternalContextBase()
|
| メソッドの概要 | |
EventCartridge |
attachEventCartridge(EventCartridge ec)
|
Resource |
getCurrentResource()
temporary fix to enable #include() to figure out current encoding. |
java.lang.String |
getCurrentTemplateName()
get the current template name |
EventCartridge |
getEventCartridge()
|
java.lang.Object[] |
getTemplateNameStack()
get the current template name stack |
IntrospectionCacheData |
icacheGet(java.lang.Object key)
returns an IntrospectionCache Data (@see IntrospectionCacheData) object if exists for the key |
void |
icachePut(java.lang.Object key,
IntrospectionCacheData o)
places an IntrospectionCache Data (@see IntrospectionCacheData) element in the cache for specified key |
void |
popCurrentTemplateName()
remove the current template name from stack |
void |
pushCurrentTemplateName(java.lang.String s)
set the current template name on top of stack |
void |
setCurrentResource(Resource r)
|
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
private java.util.HashMap introspectionCache
private java.util.Stack templateNameStack
private EventCartridge eventCartridge
private Resource currentResource
| コンストラクタの詳細 |
InternalContextBase()
| メソッドの詳細 |
public void pushCurrentTemplateName(java.lang.String s)
InternalHousekeepingContext 内の pushCurrentTemplateNames - current template namepublic void popCurrentTemplateName()
InternalHousekeepingContext 内の popCurrentTemplateNamepublic java.lang.String getCurrentTemplateName()
InternalHousekeepingContext 内の getCurrentTemplateNamepublic java.lang.Object[] getTemplateNameStack()
InternalHousekeepingContext 内の getTemplateNameStackpublic IntrospectionCacheData icacheGet(java.lang.Object key)
InternalHousekeepingContext 内の icacheGetkey - key to find in cache
public void icachePut(java.lang.Object key,
IntrospectionCacheData o)
InternalHousekeepingContext 内の icachePutkey - keyo - IntrospectionCacheData object to place in cachepublic void setCurrentResource(Resource r)
InternalHousekeepingContext 内の setCurrentResourcepublic Resource getCurrentResource()
InternalHousekeepingContext の記述:
InternalHousekeepingContext 内の getCurrentResourcepublic EventCartridge attachEventCartridge(EventCartridge ec)
InternalEventContext 内の attachEventCartridgepublic EventCartridge getEventCartridge()
InternalEventContext 内の getEventCartridge
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||