public static enum IContainerNode.ContainerType extends Enum<IContainerNode.ContainerType>
| Enum Constant and Description |
|---|
BRACES
A container wrapped in curly braces:
{...} |
BRACKETS
A container wrapped in square brackets:
[...] |
CONFIG_BLOCK
A block gated with a configuration condition expression:
|
IMPLICIT
An implicit container is the imaginary block around a single
statement:
|
PARENTHESIS
A container wrapped in parenthesis:
(...) |
SYNTHESIZED
A "synthesized" block is a generated by tree fix-up logic.
|
| Modifier and Type | Method and Description |
|---|---|
static IContainerNode.ContainerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IContainerNode.ContainerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IContainerNode.ContainerType PARENTHESIS
(...)public static final IContainerNode.ContainerType BRACES
{...}public static final IContainerNode.ContainerType BRACKETS
[...]public static final IContainerNode.ContainerType IMPLICIT
if (condition)
trace("true")
There will be an "implicit" block around trace("true").public static final IContainerNode.ContainerType SYNTHESIZED
try // missing blockThere will be a "synthesized" block as a children of the "try" node.
public static final IContainerNode.ContainerType CONFIG_BLOCK
CONFIG::debug {
x = 10;
}
public static IContainerNode.ContainerType[] values()
for (IContainerNode.ContainerType c : IContainerNode.ContainerType.values()) System.out.println(c);
public static IContainerNode.ContainerType 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 © 2023 The Apache Software Foundation. All rights reserved.