Interface InternalContextAdapter

    • Method Detail

      • pushCurrentTemplateName

        void pushCurrentTemplateName​(String s)
        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

        String getCurrentTemplateName()
        get the current template name
        Returns:
        String current template name
      • getTemplateNameStack

        String[] getTemplateNameStack()
        Returns the template name stack in form of an array.
        Returns:
        String[] with the template name stack contents.
      • pushCurrentMacroName

        void pushCurrentMacroName​(String s)
        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

        String getCurrentMacroName()
        get the current macro name
        Returns:
        String current macro name
      • 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

        IntrospectionCacheData icacheGet​(Object key)
        returns an IntrospectionCache Data (@see IntrospectionCacheData) object if exists for the key
        Parameters:
        key - key to find in cache
        Returns:
        cache object
      • icachePut

        void icachePut​(Object key,
                       IntrospectionCacheData o)
        places an IntrospectionCache Data (@see IntrospectionCacheData) element in the cache for specified key
        Parameters:
        key - key
        o - IntrospectionCacheData object to place in cache
      • getCurrentResource

        Resource getCurrentResource()
        temporary fix to enable #include() to figure out current encoding.
        Returns:
        The current resource.
      • setCurrentResource

        void setCurrentResource​(Resource r)
        Parameters:
        r -
      • setMacroLibraries

        void setMacroLibraries​(List<Template> macroLibraries)
        Set the macro library list for the current template.
        Parameters:
        macroLibraries - list of macro libraries to set
      • getMacroLibraries

        List<Template> getMacroLibraries()
        Get the macro library list for the current template.
        Returns:
        List of macro library names