Package io.vertx.reactivex.ext.shell.cli
Class CliToken
- java.lang.Object
-
- io.vertx.reactivex.ext.shell.cli.CliToken
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<CliToken>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CliTokencreateBlank(String blank)Create a new blank token.static CliTokencreateText(String text)Create a text token.booleanequals(Object o)CliTokengetDelegate()inthashCode()booleanisBlank()booleanisText()static CliTokennewInstance(CliToken arg)Stringraw()static List<CliToken>tokenize(String s)Tokenize the string argument and return a list of tokens.StringtoString()Stringvalue()
-
-
-
Method Detail
-
getDelegate
public CliToken getDelegate()
-
createText
public static CliToken createText(String text)
Create a text token.- Parameters:
text- the text- Returns:
- the token
-
createBlank
public static CliToken createBlank(String blank)
Create a new blank token.- Parameters:
blank- the blank value- Returns:
- the token
-
value
public String value()
- Returns:
- the token value
-
raw
public String raw()
- Returns:
- the raw token value, that may contain unescaped chars, for instance
-
isText
public boolean isText()
- Returns:
- true when it's a text token
-
isBlank
public boolean isBlank()
- Returns:
- true when it's a blank token
-
tokenize
public static List<CliToken> tokenize(String s)
Tokenize the string argument and return a list of tokens.- Parameters:
s- the tokenized string- Returns:
- the tokens
-
-