public class CommandToken extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandToken.TokenKind
Represents a token.
|
| Modifier and Type | Field and Description |
|---|---|
static CommandToken |
BATCH_ARGUMENTS
Represents a token of batch arguments.
|
static CommandToken |
BATCH_ID
Represents a token of batch ID.
|
static CommandToken |
EXECUTION_ID
Represents a token of execution ID.
|
static CommandToken |
FLOW_ID
Represents a token of flow ID.
|
| Constructor and Description |
|---|
CommandToken(String image)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getImage()
Returns the token image (for only text tokens).
|
CommandToken.TokenKind |
getTokenKind()
Returns the token kind.
|
int |
hashCode() |
static CommandToken |
of(String image)
Returns a plain text command token.
|
String |
toString() |
public static final CommandToken BATCH_ID
public static final CommandToken FLOW_ID
public static final CommandToken EXECUTION_ID
public static final CommandToken BATCH_ARGUMENTS
public CommandToken(String image)
image - the token imageBATCH_ID,
FLOW_ID,
EXECUTION_ID,
BATCH_ARGUMENTSpublic static CommandToken of(String image)
image - the token imagepublic CommandToken.TokenKind getTokenKind()
public String getImage()
null if this token does not represent a text tokenCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.