Package io.vertx.ext.shell.cli
Interface CliToken
-
public interface CliToken
A parsed token in the command line interface.- Author:
- Julien Viet
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CliToken
createBlank(String blank)
Create a new blank token.static CliToken
createText(String text)
Create a text token.boolean
isBlank()
boolean
isText()
String
raw()
static List<CliToken>
tokenize(String s)
Tokenize the string argument and return a list of tokens.String
value()
-
-
-
Method Detail
-
createText
static CliToken createText(String text)
Create a text token.- Parameters:
text
- the text- Returns:
- the token
-
createBlank
static CliToken createBlank(String blank)
Create a new blank token.- Parameters:
blank
- the blank value- Returns:
- the token
-
value
String value()
- Returns:
- the token value
-
raw
String raw()
- Returns:
- the raw token value, that may contain unescaped chars, for instance "ab\"cd"
-
isText
boolean isText()
- Returns:
- true when it's a text token
-
isBlank
boolean isBlank()
- Returns:
- true when it's a blank token
-
-