org.rythmengine.internal.dialect
Class SimpleRythm

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

public class SimpleRythm
extends DialectBase

Simple Rythm mode is a subset of Rythm mode which has most Rythm feature except the template layout/extend features:


Field Summary
static String ID
           
static IDialect INSTANCE
           
 
Constructor Summary
protected SimpleRythm()
           
 
Method Summary
 String a()
          Return the primary caret marker, e.g.
 void begin(IContext ctx)
           
protected  Class<?>[] buildInParserClasses()
           
 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.DialectBase
createBuildInParser, createCodeBuilder, enableFreeForLoop, enableScripting, 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

SimpleRythm

protected SimpleRythm()
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.

Returns:
dialect id

a

public String a()
Description copied from interface: IDialect
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

buildInParserClasses

protected Class<?>[] buildInParserClasses()
Specified by:
buildInParserClasses in class DialectBase

isMyTemplate

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

begin

public void begin(IContext ctx)
Specified by:
begin in interface IDialect
Overrides:
begin in class DialectBase


Copyright © 2014. All Rights Reserved.