org.rythmengine.internal.dialect
Class DialectBase

java.lang.Object
  extended by org.rythmengine.internal.dialect.DialectBase
All Implemented Interfaces:
IDialect
Direct Known Subclasses:
Rythm, SimpleRythm

public abstract class DialectBase
extends Object
implements IDialect


Constructor Summary
protected DialectBase()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.rythmengine.internal.IDialect
a, id
 

Constructor Detail

DialectBase

protected DialectBase()
Method Detail

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.