|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rythmengine.extension.ICodeType.DefImpl
public static class ICodeType.DefImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.rythmengine.extension.ICodeType |
|---|
ICodeType.DefImpl |
| Field Summary | |
|---|---|
static ICodeType.DefImpl |
CSS
|
static ICodeType.DefImpl |
CSV
|
static ICodeType.DefImpl |
HTML
|
static ICodeType.DefImpl |
JS
|
static ICodeType.DefImpl |
JSON
|
static ICodeType.DefImpl |
RAW
|
static ICodeType.DefImpl |
XML
|
| Constructor Summary | |
|---|---|
protected |
ICodeType.DefImpl(String id,
String commentStart,
String commentEnd,
Escape escape,
String suffix)
|
protected |
ICodeType.DefImpl(String id,
String commentStart,
String commentEnd,
Escape escape,
String blockStart,
String blockEnd,
String suffix)
|
| Method Summary | |
|---|---|
Set<ICodeType> |
allowedExternalTypes()
Return a set of other types that could embed this type impl. |
boolean |
allowInternalTypeBlock()
Return true if this file type impl allow another type be embedded inside. |
String |
blockEnd()
Return a regex string indicate an end of a type block |
String |
blockStart()
Some type could be embedded into another. |
Object |
clone()
|
String |
commentEnd()
Return comment end. |
String |
commentStart()
Return comment start. |
Escape |
escape()
Return escape scheme |
ICodeType |
getParent()
Return parent type or null if there is no parent set on it |
String |
newInstanceStr()
Return a string that could be write into the target java source code to create an instance of this type |
String |
resourceNameSuffix()
Return recommended resource name suffix, e.g. |
void |
setParent(ICodeType parent)
Set the parent type to the embedded type |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ICodeType.DefImpl RAW
public static final ICodeType.DefImpl HTML
public static final ICodeType.DefImpl XML
public static final ICodeType.DefImpl JS
public static final ICodeType.DefImpl CSS
public static final ICodeType.DefImpl JSON
public static final ICodeType.DefImpl CSV
| Constructor Detail |
|---|
protected ICodeType.DefImpl(String id,
String commentStart,
String commentEnd,
Escape escape,
String suffix)
protected ICodeType.DefImpl(String id,
String commentStart,
String commentEnd,
Escape escape,
String blockStart,
String blockEnd,
String suffix)
| Method Detail |
|---|
public String newInstanceStr()
ICodeType
newInstanceStr in interface ICodeTypepublic String commentStart()
ICodeType<!--
commentStart in interface ICodeTypepublic String commentEnd()
ICodeType-->
commentEnd in interface ICodeTypepublic Escape escape()
ICodeType
escape in interface ICodeTypepublic String blockStart()
ICodeTypeNote the regex string must support group and the group 1
must be the captured block start. For example, JS block start is <script> or
<script type="..."...>, then the blockStart method of JS type should be
(\<\s*script\s*.*?\<).*
blockStart in interface ICodeTypepublic String blockEnd()
ICodeType
blockEnd in interface ICodeTypefor regex requirementpublic boolean allowInternalTypeBlock()
ICodeType
allowInternalTypeBlock in interface ICodeTypepublic void setParent(ICodeType parent)
ICodeType
setParent in interface ICodeTypepublic ICodeType getParent()
ICodeType
getParent in interface ICodeTypepublic Set<ICodeType> allowedExternalTypes()
ICodeType
allowedExternalTypes in interface ICodeTypepublic String resourceNameSuffix()
ICodeType
resourceNameSuffix in interface ICodeTypepublic String toString()
toString in class Objectpublic Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||