public abstract class DialectBase extends Object implements IDialect
| Modifier | Constructor and Description |
|---|---|
protected |
DialectBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(IContext ctx) |
protected abstract Class<?>[] |
buildInParserClasses() |
IParser |
createBuildInParser(String keyword,
IContext context) |
CodeBuilder |
createCodeBuilder(String template,
String className,
String tagName,
TemplateClass templateClass,
RythmEngine engine) |
boolean |
enableFreeForLoop() |
boolean |
enableScripting() |
void |
end(IContext ctx) |
boolean |
equals(Object o) |
Iterable<IParserFactory> |
freeParsers() |
int |
hashCode() |
boolean |
isMyTemplate(String template) |
void |
registerParserFactory(IParserFactory parser)
Register a special case parser which will be processed before all other parsers
|
String |
toString() |
public void registerParserFactory(IParserFactory parser)
IDialectfor 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.
registerParserFactory in interface IDialectpublic Iterable<IParserFactory> freeParsers()
protected abstract Class<?>[] buildInParserClasses()
public boolean isMyTemplate(String template)
isMyTemplate in interface IDialectpublic boolean enableScripting()
enableScripting in interface IDialectpublic boolean enableFreeForLoop()
enableFreeForLoop in interface IDialectpublic CodeBuilder createCodeBuilder(String template, String className, String tagName, TemplateClass templateClass, RythmEngine engine)
createCodeBuilder in interface IDialectCopyright © 2016. All Rights Reserved.