Serializable, Comparable<TemplateBlockType>public enum TemplateBlockType extends Enum<TemplateBlockType>
| Enum Constant | Description |
|---|---|
BINDER |
|
DYNAMIC_TEXT |
|
FOR |
|
IF |
|
INCLUDE |
|
PLAIN_TEXT |
|
STATIC |
| Modifier and Type | Method | Description |
|---|---|---|
protected static boolean |
controlBlockEmbeddedInStaticBlock(String templateString,
int startIndex) |
|
Pattern |
getEndControlBlockPattern() |
Returns the detection Pattern for a end control block tag.
|
static NextDetectedBlockResult |
getNextBlock(String templateString) |
|
Pattern |
getStartControlBlockPattern() |
Returns the detection Pattern for a start control block tag.
|
boolean |
isControlBlock() |
|
static TemplateBlockType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static TemplateBlockType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemplateBlockType BINDER
public static final TemplateBlockType PLAIN_TEXT
public static final TemplateBlockType DYNAMIC_TEXT
public static final TemplateBlockType STATIC
public static final TemplateBlockType FOR
public static final TemplateBlockType IF
public static final TemplateBlockType INCLUDE
public static TemplateBlockType[] values()
for (TemplateBlockType c : TemplateBlockType.values()) System.out.println(c);
public static TemplateBlockType 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 nullpublic static NextDetectedBlockResult getNextBlock(String templateString)
protected static boolean controlBlockEmbeddedInStaticBlock(String templateString, int startIndex)
public Pattern getStartControlBlockPattern()
public Pattern getEndControlBlockPattern()
public boolean isControlBlock()
Copyright © 2017–2020 Holisticon AG. All rights reserved.