org.apache.velocity.context
public interface InternalContextAdapter extends Context, InternalWrapperContext, InternalEventContext
Modifier and Type | Method and Description |
---|---|
int |
getCurrentMacroCallDepth()
get the current macro call depth
|
java.lang.String |
getCurrentMacroName()
get the current macro name
|
Resource |
getCurrentResource()
temporary fix to enable #include() to figure out
current encoding.
|
java.lang.String |
getCurrentTemplateName()
get the current template name
|
java.util.List |
getMacroLibraries()
Get the macro library list for the current template.
|
java.lang.Object[] |
getMacroNameStack()
Returns the macro name stack in form of an array.
|
java.lang.Object[] |
getTemplateNameStack()
Returns the template name stack in form of an array.
|
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 |
popCurrentMacroName()
remove the current macro name from stack
|
void |
popCurrentTemplateName()
remove the current template name from stack
|
void |
pushCurrentMacroName(java.lang.String s)
set the current macro name on top of stack
|
void |
pushCurrentTemplateName(java.lang.String s)
set the current template name on top of stack
|
void |
setCurrentResource(Resource r) |
void |
setMacroLibraries(java.util.List macroLibraries)
Set the macro library list for the current template.
|
containsKey, get, getKeys, put, remove
getBaseContext, getInternalUserContext, localPut
attachEventCartridge, getEventCartridge
void pushCurrentTemplateName(java.lang.String s)
s
- current template namevoid popCurrentTemplateName()
java.lang.String getCurrentTemplateName()
java.lang.Object[] getTemplateNameStack()
void pushCurrentMacroName(java.lang.String s)
s
- current macro namevoid popCurrentMacroName()
java.lang.String getCurrentMacroName()
int getCurrentMacroCallDepth()
java.lang.Object[] getMacroNameStack()
IntrospectionCacheData icacheGet(java.lang.Object key)
key
- key to find in cachevoid icachePut(java.lang.Object key, IntrospectionCacheData o)
key
- keyo
- IntrospectionCacheData object to place in cacheResource getCurrentResource()
void setCurrentResource(Resource r)
r
- void setMacroLibraries(java.util.List macroLibraries)
macroLibraries
- list of macro libraries to setjava.util.List getMacroLibraries()
Copyright © 2000-2014. All Rights Reserved.