public class ToString extends SimpleRythm
ToString mode is a very limited subset of Rythm which has only basic Rythm features:
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static IDialect |
INSTANCE |
protected Class |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
ToString() |
|
ToString(Class type) |
| Modifier and Type | Method and Description |
|---|---|
String |
a()
Return the primary caret marker, e.g.
|
void |
begin(IContext ctx) |
boolean |
enableScripting() |
String |
id()
Return the ID of the dialect, might be something like “rythm” or “play-groovy” etc.
|
boolean |
isMyTemplate(String template) |
buildInParserClassescreateBuildInParser, createCodeBuilder, enableFreeForLoop, end, equals, freeParsers, hashCode, registerParserFactory, toStringpublic static final String ID
public static final IDialect INSTANCE
protected Class type
protected ToString()
public ToString(Class type)
public String id()
IDialectReturn the ID of the dialect, might be something like “rythm” or “play-groovy” etc.
id in interface IDialectid in class SimpleRythmpublic String a()
IDialectReturn the primary caret marker, e.g. “#” in play-groovy, “@” in rythm and “`” in japid. To escape the marker repeat the marker twice, e.g. “@@”, “##”, “``”
a in interface IDialecta in class SimpleRythmpublic boolean isMyTemplate(String template)
isMyTemplate in interface IDialectisMyTemplate in class SimpleRythmpublic boolean enableScripting()
enableScripting in interface IDialectenableScripting in class DialectBasepublic void begin(IContext ctx)
begin in interface IDialectbegin in class SimpleRythmCopyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.