Interface InternalContextAdapter
- All Superinterfaces:
Context, InternalEventContext, InternalWrapperContext
- All Known Implementing Classes:
ChainedInternalContextAdapter, InternalContextAdapterImpl
public interface InternalContextAdapter
extends Context, InternalWrapperContext, InternalEventContext
interface to bring all necessary internal and user contexts together.
this is what the AST expects to deal with. If anything new comes
along, add it here.
I will rename soon :)
- Version:
- $Id$
- Author:
- Geir Magnusson Jr.
-
Method Summary
Modifier and TypeMethodDescriptionintget the current macro call depthget the current macro nametemporary fix to enable #include() to figure out current encoding.get the current template nameGet the macro library list for the current template.String[]Returns the macro name stack in form of an array.String[]Returns the template name stack in form of an array.returns an IntrospectionCache Data (@see IntrospectionCacheData) object if exists for the keyvoidicachePut(Object key, IntrospectionCacheData o) places an IntrospectionCache Data (@see IntrospectionCacheData) element in the cache for specified keyvoidremove the current macro name from stackvoidremove the current template name from stackvoidset the current macro name on top of stackvoidset the current template name on top of stackvoidvoidsetMacroLibraries(List<Template> macroLibraries) Set the macro library list for the current template.Methods inherited from interface InternalEventContext
attachEventCartridge, getEventCartridgeMethods inherited from interface InternalWrapperContext
containsKey, get, getBaseContext, getInternalUserContext, put
-
Method Details
-
pushCurrentTemplateName
set the current template name on top of stack- Parameters:
s- current template name
-
popCurrentTemplateName
void popCurrentTemplateName()remove the current template name from stack -
getCurrentTemplateName
-
getTemplateNameStack
String[] getTemplateNameStack()Returns the template name stack in form of an array.- Returns:
- String[] with the template name stack contents.
-
pushCurrentMacroName
set the current macro name on top of stack- Parameters:
s- current macro name
-
popCurrentMacroName
void popCurrentMacroName()remove the current macro name from stack -
getCurrentMacroName
-
getCurrentMacroCallDepth
int getCurrentMacroCallDepth()get the current macro call depth- Returns:
- int current macro call depth
-
getMacroNameStack
String[] getMacroNameStack()Returns the macro name stack in form of an array.- Returns:
- String[] with the macro name stack contents.
-
icacheGet
returns an IntrospectionCache Data (@see IntrospectionCacheData) object if exists for the key- Parameters:
key- key to find in cache- Returns:
- cache object
-
icachePut
places an IntrospectionCache Data (@see IntrospectionCacheData) element in the cache for specified key- Parameters:
key- keyo- IntrospectionCacheData object to place in cache
-
getCurrentResource
Resource getCurrentResource()temporary fix to enable #include() to figure out current encoding.- Returns:
- The current resource.
-
setCurrentResource
- Parameters:
r-
-
setMacroLibraries
-
getMacroLibraries
-