org.rythmengine.internal.dialect
Class DialectBase
java.lang.Object
org.rythmengine.internal.dialect.DialectBase
- All Implemented Interfaces:
- IDialect
- Direct Known Subclasses:
- Rythm, SimpleRythm
public abstract class DialectBase
- extends Object
- implements IDialect
| Methods inherited from interface org.rythmengine.internal.IDialect |
a, id |
DialectBase
protected DialectBase()
registerParserFactory
public void registerParserFactory(IParserFactory parser)
- Description copied from interface:
IDialect
- 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.
- Specified by:
registerParserFactory in interface IDialect
createBuildInParser
public IParser createBuildInParser(String keyword,
IContext context)
freeParsers
public Iterable<IParserFactory> freeParsers()
buildInParserClasses
protected abstract Class<?>[] buildInParserClasses()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
isMyTemplate
public boolean isMyTemplate(String template)
- Specified by:
isMyTemplate in interface IDialect
begin
public void begin(IContext ctx)
- Specified by:
begin in interface IDialect
end
public void end(IContext ctx)
- Specified by:
end in interface IDialect
enableScripting
public boolean enableScripting()
- Specified by:
enableScripting in interface IDialect
enableFreeForLoop
public boolean enableFreeForLoop()
- Specified by:
enableFreeForLoop in interface IDialect
createCodeBuilder
public CodeBuilder createCodeBuilder(String template,
String className,
String tagName,
TemplateClass templateClass,
RythmEngine engine)
- Specified by:
createCodeBuilder in interface IDialect
Copyright © 2014. All Rights Reserved.