org.rythmengine.internal
Interface IDialect


public interface IDialect


Method Summary
 String a()
          Return the primary caret marker, e.g.
 void begin(IContext ctx)
           
 CodeBuilder createCodeBuilder(String template, String className, String tagName, org.rythmengine.internal.compiler.TemplateClass templateClass, RythmEngine engine)
           
 boolean enableFreeForLoop()
           
 boolean enableScripting()
           
 void end(IContext ctx)
           
 String id()
          Return the ID of the dialect, might be something like "rythm" or "play-groovy" etc.
 boolean isMyTemplate(String template)
           
 void registerParserFactory(IParserFactory parser)
          Register a special case parser which will be processed before all other parsers

 

Method Detail

id

String id()
Return the ID of the dialect, might be something like "rythm" or "play-groovy" etc.

Returns:
dialect id

a

String a()
Return the primary caret marker, e.g. "#" in play-groovy, "@" in rythm and "`" in japid. To escape the marker repeat the marker twice, e.g. "@@", "##", "``"

Returns:
the primary caret

registerParserFactory

void registerParserFactory(IParserFactory parser)
Register a special case parser which will be processed before all other parsers

for example, the rythm extension for play!framework might want to register a special case parser to process something like @{Controller.actionMethod()} or &{'MSG_ID'} etc.

Parameters:
parser -

isMyTemplate

boolean isMyTemplate(String template)

begin

void begin(IContext ctx)

end

void end(IContext ctx)

enableScripting

boolean enableScripting()

enableFreeForLoop

boolean enableFreeForLoop()

createCodeBuilder

CodeBuilder createCodeBuilder(String template,
                              String className,
                              String tagName,
                              org.rythmengine.internal.compiler.TemplateClass templateClass,
                              RythmEngine engine)


Copyright © 2013. All Rights Reserved.