public interface ICodeType
natural template feature
and
smart escape feature
Modifier and Type | Interface and Description |
---|---|
static class |
ICodeType.DefImpl |
Modifier and Type | Method and Description |
---|---|
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.
|
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 commentStart()
<!--
String commentEnd()
-->
Escape escape()
String blockStart()
Note 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*.*?\<).*
String blockEnd()
for regex requirement
boolean allowInternalTypeBlock()
Set<ICodeType> allowedExternalTypes()
void setParent(ICodeType parent)
parent
- ICodeType getParent()
String newInstanceStr()
String resourceNameSuffix()
Copyright © 2015. All Rights Reserved.