CliToken

A parsed token in the command line interface.

package

Default

Methods

__construct

__construct() 

Create a new blank token.

createBlank( $arg0) : \io\vertx\jphp\ext\shell\cli\CliToken
static

Arguments

$arg0

string

Response

\io\vertx\jphp\ext\shell\cli\CliToken

the token

Create a text token.

createText( $arg0) : \io\vertx\jphp\ext\shell\cli\CliToken
static

Arguments

$arg0

string

Response

\io\vertx\jphp\ext\shell\cli\CliToken

the token

isBlank

isBlank() : boolean

Response

boolean

true when it's a blank token

isText

isText() : boolean

Response

boolean

true when it's a text token

raw

raw() : string

Response

string

the raw token value, that may contain unescaped chars, for instance {@literal "ab\"cd"}

Tokenize the string argument and return a list of tokens.

tokenize( $arg0) : array
static

Arguments

$arg0

string

Response

array

the tokens

value

value() : string

Response

string

the token value