public enum Keyword extends Enum<Keyword> implements IKeyword
Enum Constant and Description |
---|
ARGS
Declare arguments used in the template
|
ASSIGN
Assign enclosed part into a String variable
|
BREAK
break current loop
|
CACHE
Cache the block for a certain period
|
CASE |
COMPACT
Force compact mode in regard of engine.conf().compactEnabled()
|
CONTINUE
Continue current loop
|
DEBUG
output debug message
|
EACH
Foreach loop
|
ESCAPE
Mark a section that expression should be output after escaped
|
EXEC
Execute an macro
|
EXIT_IF_NO_CLASS
Exit parsing process if no class loaded in current class loader
|
EXPAND
Expand an macro, alias of exec
|
EXTENDS
Declare parent template for this template
|
FINALLY
Mark a finally section.
|
GET
Fetch named content from this or sub template
|
I18N
Lookup i18n message
|
IF
plain java if else block
|
IMPORT
import java packages/classes
|
INCLUDE
include other templates
|
INIT
Mark a section init code.
|
INVOKE
Explicitly invoke a tag (could be used to implement dynamic tag dispatch
|
LOCALE
Define a different locale block
|
LOG_TIME
Instruct that this template needs to log execution time
|
MACRO
Define an macro.
|
NOCOMPACT
For no compact in regard to engine.conf().compactEnabled()
|
NOSIM
Indicate this is not a SIM template
|
RAW
Mark a section that expression should be output as raw data
|
RENDER_BODY
Output sub template render content in place
|
RENDER_INHERITED |
RENDER_SECTION
Output sub template section content in place
|
RETURN
break the current template execution process and return to caller
|
RETURN_IF
break the current template execution process and return to caller
if an expression evaluated to true
|
SECTION
Declare a section start
|
SET
Declare named content to be used in this or parent template
|
SIMPLE
Identify current template is a simple template
|
SWITCH |
TAG
define tag
|
THIS
Call self as a tag
|
TS
output timestamp
|
VERBATIM
Verbatim tag mark a block of template source shall
not be parsed
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRegexp() |
String |
toString() |
static Keyword |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Keyword[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Keyword ASSIGN
public static final Keyword ARGS
public static final Keyword BREAK
public static final Keyword CACHE
public static final Keyword CASE
public static final Keyword COMPACT
public static final Keyword CONTINUE
public static final Keyword DEBUG
public static final Keyword EACH
public static final Keyword ESCAPE
public static final Keyword EXEC
public static final Keyword EXPAND
public static final Keyword EXIT_IF_NO_CLASS
public static final Keyword EXTENDS
public static final Keyword FINALLY
public static final Keyword GET
public static final Keyword I18N
public static final Keyword IF
public static final Keyword IMPORT
public static final Keyword INCLUDE
public static final Keyword INIT
public static final Keyword INVOKE
public static final Keyword LOCALE
public static final Keyword LOG_TIME
public static final Keyword MACRO
public static final Keyword NOCOMPACT
public static final Keyword NOSIM
public static final Keyword RAW
public static final Keyword RENDER_BODY
public static final Keyword RENDER_INHERITED
public static final Keyword RENDER_SECTION
public static final Keyword RETURN
public static final Keyword RETURN_IF
public static final Keyword SECTION
public static final Keyword SET
public static final Keyword SIMPLE
public static final Keyword SWITCH
public static final Keyword THIS
public static final Keyword TS
public static final Keyword TAG
public static final Keyword VERBATIM
public static Keyword[] values()
for (Keyword c : Keyword.values()) System.out.println(c);
public static Keyword valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All Rights Reserved.