org.rythmengine.internal.dialect
Class BasicRythm

java.lang.Object
  extended by org.rythmengine.internal.dialect.DialectBase
      extended by org.rythmengine.internal.dialect.SimpleRythm
          extended by org.rythmengine.internal.dialect.BasicRythm
All Implemented Interfaces:
IDialect

public class BasicRythm
extends SimpleRythm

Basic Rythm is a very limited subset of Rythm which has only basic Rythm features:

Specifically, argument declaration and scripting is disabled in ToString mode; @for(; ;) is not allowed in Basic mode to prevent infinite loop


Field Summary
static String ID
           
static IDialect INSTANCE
           
 
Constructor Summary
protected BasicRythm()
           
 
Method Summary
protected  Class<?>[] buildInParserClasses()
           
 boolean enableFreeForLoop()
           
 boolean enableScripting()
           
 String id()
          Return the ID of the dialect, might be something like "rythm" or "play-groovy" etc.
 boolean isMyTemplate(String template)
           
 
Methods inherited from class org.rythmengine.internal.dialect.SimpleRythm
a, begin
 
Methods inherited from class org.rythmengine.internal.dialect.DialectBase
createBuildInParser, createCodeBuilder, end, equals, freeParsers, hashCode, registerParserFactory, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

INSTANCE

public static final IDialect INSTANCE
Constructor Detail

BasicRythm

protected BasicRythm()
Method Detail

id

public String id()
Description copied from interface: IDialect
Return the ID of the dialect, might be something like "rythm" or "play-groovy" etc.

Specified by:
id in interface IDialect
Overrides:
id in class SimpleRythm
Returns:
dialect id

buildInParserClasses

protected Class<?>[] buildInParserClasses()
Overrides:
buildInParserClasses in class SimpleRythm

isMyTemplate

public boolean isMyTemplate(String template)
Specified by:
isMyTemplate in interface IDialect
Overrides:
isMyTemplate in class SimpleRythm

enableScripting

public boolean enableScripting()
Specified by:
enableScripting in interface IDialect
Overrides:
enableScripting in class DialectBase

enableFreeForLoop

public boolean enableFreeForLoop()
Specified by:
enableFreeForLoop in interface IDialect
Overrides:
enableFreeForLoop in class DialectBase


Copyright © 2014. All Rights Reserved.