A - The actor typepublic interface LiteralNode<A extends CommandActor> extends CommandNode<A>
CommandNode.name().| Modifier and Type | Method and Description |
|---|---|
default boolean |
isLiteral()
Tests whether this node is a
LiteralNode. |
default boolean |
isParameter()
Tests whether this node is a
ParameterNode. |
default @NotNull java.lang.String |
representation()
Returns the string representation.
|
default @NotNull LiteralNode<A> |
requireLiteralNode()
Requires this node to be a
LiteralNode and automatically
casts it |
default <T> @NotNull ParameterNode<A,T> |
requireParameterNode()
Requires this node to be a
ParameterNode. |
default boolean isLiteral()
LiteralNode. This always
returns trueisLiteral in interface CommandNode<A extends CommandActor>@Contract(value="-> this",
pure=true)
@NotNull
default @NotNull LiteralNode<A> requireLiteralNode()
LiteralNode and automatically
casts itrequireLiteralNode in interface CommandNode<A extends CommandActor>default boolean isParameter()
ParameterNode. This
always returns falseisParameter in interface CommandNode<A extends CommandActor>@NotNull default @NotNull java.lang.String representation()
representation in interface CommandNode<A extends CommandActor>@Contract(value="-> fail") @NotNull default <T> @NotNull ParameterNode<A,T> requireParameterNode()
ParameterNode. This will throw
a IllegalStateException.requireParameterNode in interface CommandNode<A extends CommandActor>java.lang.IllegalStateException - always