|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Designator
A designator knows how to compile a code fragment enclosed by the "${" and "}". It has a keyword which identifies this designator. Default designators are (among others): "print", "if", "while", "end", "import", "include",...
Method Summary | |
---|---|
Chunk |
compile(TemplateEngine engine,
CompileContext context,
Token token)
|
java.lang.String |
getKeyword()
Returns the keyword of the designator. |
boolean |
isBlockExpansion()
|
boolean |
isBlockHead()
|
boolean |
isBlockTail()
|
boolean |
isEmpty()
If this method returns true it indicates that the code fragment does not contain code and does not need to get compiled (e.g. |
boolean |
isExpandableBlock()
|
boolean |
isVisible()
Returns true if the chunk generated by the designator is visible, false otherwise. |
Method Detail |
---|
java.lang.String getKeyword()
TemplateEngine
.
The following characters are allowed: any letter,
any digit, '.', '_', '-' and '/'.
boolean isEmpty()
boolean isVisible()
ContentDesignator
separately.
boolean isBlockHead()
boolean isBlockTail()
boolean isExpandableBlock()
boolean isBlockExpansion()
Chunk compile(TemplateEngine engine, CompileContext context, Token token) throws TemplateException
TemplateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |