org.rythmengine.internal.dialect
Class AutoToString

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

public class AutoToString
extends ToString

ToString dialect is a kind of Rythm dialect, the difference is that it preset the type of the only one render arg


Nested Class Summary
static class AutoToString.AutoToStringData
           
 
Field Summary
static String ID
           
static IDialect INSTANCE
           
 AutoToString.AutoToStringData meta
           
 
Fields inherited from class org.rythmengine.internal.dialect.ToString
type
 
Constructor Summary
protected AutoToString()
           
  AutoToString(Class type, AutoToString.AutoToStringData data)
           
 
Method Summary
 CodeBuilder createCodeBuilder(String template, String className, String tagName, TemplateClass templateClass, RythmEngine engine)
           
 String id()
          Return the ID of the dialect, might be something like "rythm" or "play-groovy" etc.
static AutoToString.AutoToStringData parseStr(String s)
           
static String templateStr(Class<?> c, ToStringOption o, ToStringStyle s)
           
 
Methods inherited from class org.rythmengine.internal.dialect.ToString
a, begin, enableScripting, isMyTemplate
 
Methods inherited from class org.rythmengine.internal.dialect.SimpleRythm
buildInParserClasses
 
Methods inherited from class org.rythmengine.internal.dialect.DialectBase
createBuildInParser, enableFreeForLoop, 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

meta

public AutoToString.AutoToStringData meta
Constructor Detail

AutoToString

protected AutoToString()

AutoToString

public AutoToString(Class type,
                    AutoToString.AutoToStringData data)
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 ToString
Returns:
dialect id

createCodeBuilder

public CodeBuilder createCodeBuilder(String template,
                                     String className,
                                     String tagName,
                                     TemplateClass templateClass,
                                     RythmEngine engine)
Specified by:
createCodeBuilder in interface IDialect
Overrides:
createCodeBuilder in class DialectBase

templateStr

public static String templateStr(Class<?> c,
                                 ToStringOption o,
                                 ToStringStyle s)

parseStr

public static AutoToString.AutoToStringData parseStr(String s)


Copyright © 2014. All Rights Reserved.