org.rythmengine.template
Class ITemplate.__Context

java.lang.Object
  extended by org.rythmengine.template.ITemplate.__Context
Enclosing interface:
ITemplate

public static class ITemplate.__Context
extends Object

The render time context. Not to be used in user application or template


Field Summary
 Stack<ICodeType> codeTypeStack
          Code type stack.
 
Constructor Summary
ITemplate.__Context()
           
 
Method Summary
 ICodeType currentCodeType()
           
 Escape currentEscape()
           
 Locale currentLocale()
           
 void init(TemplateBase templateBase, ICodeType type, Locale locale, org.rythmengine.internal.compiler.TemplateClass tc, RythmEngine engine)
          init the context with template and base code type
 ICodeType popCodeType()
           
 Escape popEscape()
           
 Locale popLocale()
           
 void pushCodeType(ICodeType type)
           
 void pushEscape(Escape escape)
           
 void pushLocale(Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codeTypeStack

public Stack<ICodeType> codeTypeStack
Code type stack. Used to enable the RythmConfigurationKey.FEATURE_NATURAL_TEMPLATE_ENABLED

See Also:
#localeStack}
Constructor Detail

ITemplate.__Context

public ITemplate.__Context()
Method Detail

init

public void init(TemplateBase templateBase,
                 ICodeType type,
                 Locale locale,
                 org.rythmengine.internal.compiler.TemplateClass tc,
                 RythmEngine engine)
init the context with template and base code type

Parameters:
templateBase -
type -
locale -

currentCodeType

public ICodeType currentCodeType()

pushCodeType

public void pushCodeType(ICodeType type)

popCodeType

public ICodeType popCodeType()

currentLocale

public Locale currentLocale()

pushLocale

public void pushLocale(Locale locale)

popLocale

public Locale popLocale()

currentEscape

public Escape currentEscape()

pushEscape

public void pushEscape(Escape escape)

popEscape

public Escape popEscape()


Copyright © 2013. All Rights Reserved.