public interface InternalContextAdapter extends Context, InternalWrapperContext, InternalEventContext
Modifier and Type | Method and Description |
---|---|
int |
getCurrentMacroCallDepth()
get the current macro call depth
|
String |
getCurrentMacroName()
get the current macro name
|
Resource |
getCurrentResource()
temporary fix to enable #include() to figure out
current encoding.
|
String |
getCurrentTemplateName()
get the current template name
|
List |
getMacroLibraries()
Get the macro library list for the current template.
|
String[] |
getMacroNameStack()
Returns the macro name stack in form of an array.
|
String[] |
getTemplateNameStack()
Returns the template name stack in form of an array.
|
IntrospectionCacheData |
icacheGet(Object key)
returns an IntrospectionCache Data (@see IntrospectionCacheData)
object if exists for the key
|
void |
icachePut(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(String s)
set the current macro name on top of stack
|
void |
pushCurrentTemplateName(String s)
set the current template name on top of stack
|
void |
setCurrentResource(Resource r) |
void |
setMacroLibraries(List macroLibraries)
Set the macro library list for the current template.
|
containsKey, get, getKeys, put, remove
containsKey, get, getBaseContext, getInternalUserContext, put
attachEventCartridge, getEventCartridge
void pushCurrentTemplateName(String s)
s
- current template namevoid popCurrentTemplateName()
String getCurrentTemplateName()
String[] getTemplateNameStack()
void pushCurrentMacroName(String s)
s
- current macro namevoid popCurrentMacroName()
String getCurrentMacroName()
int getCurrentMacroCallDepth()
String[] getMacroNameStack()
IntrospectionCacheData icacheGet(Object key)
key
- key to find in cachevoid icachePut(Object key, IntrospectionCacheData o)
key
- keyo
- IntrospectionCacheData object to place in cacheResource getCurrentResource()
void setCurrentResource(Resource r)
r
- void setMacroLibraries(List macroLibraries)
macroLibraries
- list of macro libraries to setList getMacroLibraries()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.