final |
---|
Methods | ||
---|---|---|
public
|
__construct(int $type, string $text, ?Position $position = null)
|
# |
public
|
is(int|string ...$kind): bool
|
# |
public
|
isEnd(): bool
|
# |
public
|
isPhpKind(): bool
|
# |
Constants | |||
---|---|---|---|
public
|
End = 0
|
# | |
public
|
Text = 10000
|
# | |
public
|
Whitespace = 10002
|
# | |
public
|
Newline = 10003
|
# | |
public
|
Indentation = 10004
|
# | |
public
|
Slash = 10005
|
# | |
public
|
Equals = 10006
|
# | |
public
|
Quote = 10007
|
# | |
public
|
Latte_TagOpen = 10010
|
# | |
public
|
Latte_TagClose = 10011
|
# | |
public
|
Latte_Name = 10012
|
# | |
public
|
Latte_CommentOpen = 10014
|
# | |
public
|
Latte_CommentClose = 10015
|
# | |
public
|
Html_TagOpen = 10020
|
# | |
public
|
Html_TagClose = 10021
|
# | |
public
|
Html_CommentOpen = 10022
|
# | |
public
|
Html_CommentClose = 10023
|
# | |
public
|
Html_BogusOpen = 10024
|
# | |
public
|
Html_Name = 10025
|
# | |
public
|
Php_LogicalOr = 257
|
# | |
public
|
Php_LogicalXor = 258
|
# | |
public
|
Php_LogicalAnd = 259
|
# | |
public
|
Php_DoubleArrow = 260
|
# | |
public
|
Php_PlusEqual = 261
|
# | |
public
|
Php_MinusEqual = 262
|
# | |
public
|
Php_MulEqual = 263
|
# | |
public
|
Php_DivEqual = 264
|
# | |
public
|
Php_ConcatEqual = 265
|
# | |
public
|
Php_ModEqual = 266
|
# | |
public
|
Php_AndEqual = 267
|
# | |
public
|
Php_OrEqual = 268
|
# | |
public
|
Php_XorEqual = 269
|
# | |
public
|
Php_SlEqual = 270
|
# | |
public
|
Php_SrEqual = 271
|
# | |
public
|
Php_PowEqual = 272
|
# | |
public
|
Php_CoalesceEqual = 273
|
# | |
public
|
Php_Coalesce = 274
|
# | |
public
|
Php_BooleanOr = 275
|
# | |
public
|
Php_BooleanAnd = 276
|
# | |
public
|
Php_AmpersandNotFollowed = 277
|
# | |
public
|
Php_AmpersandFollowed = 278
|
# | |
public
|
Php_IsEqual = 279
|
# | |
public
|
Php_IsNotEqual = 280
|
# | |
public
|
Php_IsIdentical = 281
|
# | |
public
|
Php_IsNotIdentical = 282
|
# | |
public
|
Php_Spaceship = 283
|
# | |
public
|
Php_IsSmallerOrEqual = 284
|
# | |
public
|
Php_IsGreaterOrEqual = 285
|
# | |
public
|
Php_Sl = 286
|
# | |
public
|
Php_Sr = 287
|
# | |
public
|
Php_In = 288
|
# | |
public
|
Php_Instanceof = 289
|
# | |
public
|
Php_Inc = 290
|
# | |
public
|
Php_Dec = 291
|
# | |
public
|
Php_IntCast = 292
|
# | |
public
|
Php_FloatCast = 293
|
# | |
public
|
Php_StringCast = 294
|
# | |
public
|
Php_ArrayCast = 295
|
# | |
public
|
Php_ObjectCast = 296
|
# | |
public
|
Php_BoolCast = 297
|
# | |
public
|
Php_Pow = 298
|
# | |
public
|
Php_New = 299
|
# | |
public
|
Php_Clone = 300
|
# | |
public
|
Php_Integer = 301
|
# | |
public
|
Php_Float = 302
|
# | |
public
|
Php_Identifier = 303
|
# | |
public
|
Php_StringVarname = 304
|
# | |
public
|
Php_Constant = 305
|
# | |
public
|
Php_Variable = 306
|
# | |
public
|
Php_NumString = 307
|
# | |
public
|
Php_EncapsedAndWhitespace = 308
|
# | |
public
|
Php_ConstantEncapsedString = 309
|
# | |
public
|
Php_Match = 310
|
# | |
public
|
Php_Default = 311
|
# | |
public
|
Php_Function = 312
|
# | |
public
|
Php_Fn = 313
|
# | |
public
|
Php_Return = 314
|
# | |
public
|
Php_Use = 315
|
# | |
public
|
Php_Isset = 316
|
# | |
public
|
Php_Empty = 317
|
# | |
public
|
Php_ObjectOperator = 318
|
# | |
public
|
Php_NullsafeObjectOperator = 319
|
# | |
public
|
Php_UndefinedsafeObjectOperator = 320
|
# | |
public
|
Php_List = 321
|
# | |
public
|
Php_Array = 322
|
# | |
public
|
Php_StartHeredoc = 323
|
# | |
public
|
Php_EndHeredoc = 324
|
# | |
public
|
Php_DollarOpenCurlyBraces = 325
|
# | |
public
|
Php_CurlyOpen = 326
|
# | |
public
|
Php_PaamayimNekudotayim = 327
|
# | |
public
|
Php_NsSeparator = 328
|
# | |
public
|
Php_Ellipsis = 329
|
# | |
public
|
Php_ExpandCast = 330
|
# | |
public
|
Php_NameFullyQualified = 331
|
# | |
public
|
Php_NameQualified = 332
|
# | |
public
|
Php_Whitespace = 333
|
# | |
public
|
Php_Comment = 334
|
# | |
public
|
Php_Null = 335
|
# | |
public
|
Php_True = 336
|
# | |
public
|
Php_False = 337
|
# | |
public
|
Names = [
self::End => '[EOF]',
self::Text => 'text',
self::Whitespace => 'whitespace',
self::Newline => 'newline',
self::Indentation => 'indentation',
self::Slash => "'/'",
self::Equals => "'='",
self::Quote => 'quote',
self::Latte_TagOpen => 'Latte tag',
self::Latte_TagClose => 'end of Latte tag',
self::Latte_Name => 'tag name',
self::Latte_CommentOpen => 'Latte comment',
self::Latte_CommentClose => 'end of Latte comment',
self::Html_TagOpen => 'HTML tag',
self::Html_TagClose => 'end of HTML tag',
self::Html_CommentOpen => 'HTML comment',
self::Html_CommentClose => 'end of HTML comment',
self::Html_BogusOpen => 'HTML bogus tag',
self::Html_Name => 'HTML name',
self::Php_LogicalOr => "'or'",
self::Php_LogicalXor => "'xor'",
self::Php_LogicalAnd => "'and'",
self::Php_DoubleArrow => "'=>'",
self::Php_PlusEqual => "'+='",
self::Php_MinusEqual => "'-='",
self::Php_MulEqual => "'*='",
self::Php_DivEqual => "'/='",
self::Php_ConcatEqual => "'.='",
self::Php_ModEqual => "'%='",
self::Php_AndEqual => "'&='",
self::Php_OrEqual => "'|='",
self::Php_XorEqual => "'^='",
self::Php_SlEqual => "'<<='",
self::Php_SrEqual => "'>>='",
self::Php_PowEqual => "'**='",
self::Php_CoalesceEqual => "'??='",
self::Php_Coalesce => "'??'",
self::Php_BooleanOr => "'||'",
self::Php_BooleanAnd => "'&&'",
self::Php_AmpersandNotFollowed => "'&'",
self::Php_AmpersandFollowed => "'&'",
self::Php_IsEqual => "'=='",
self::Php_IsNotEqual => "'!='",
self::Php_IsIdentical => "'==='",
self::Php_IsNotIdentical => "'!=='",
self::Php_Spaceship => "'<=>'",
self::Php_IsSmallerOrEqual => "'<='",
self::Php_IsGreaterOrEqual => "'>='",
self::Php_Sl => "'<<'",
self::Php_Sr => "'>>'",
self::Php_In => "'in'",
self::Php_Instanceof => "'instanceof'",
self::Php_Inc => "'++'",
self::Php_Dec => "'--'",
self::Php_IntCast => "'(int)'",
self::Php_FloatCast => "'(float)'",
self::Php_StringCast => "'(string)'",
self::Php_ArrayCast => "'(array)'",
self::Php_ObjectCast => "'(object)'",
self::Php_BoolCast => "'(bool)'",
self::Php_Pow => "'**'",
self::Php_New => "'new'",
self::Php_Clone => "'clone'",
self::Php_Integer => 'integer',
self::Php_Float => 'floating-point number',
self::Php_Identifier => 'identifier',
self::Php_StringVarname => 'variable name',
self::Php_Constant => 'constant',
self::Php_Variable => 'variable',
self::Php_NumString => 'number',
self::Php_EncapsedAndWhitespace => 'string content',
self::Php_ConstantEncapsedString => 'quoted string',
self::Php_Match => "'match'",
self::Php_Default => "'default'",
self::Php_Function => "'function'",
self::Php_Fn => "'fn'",
self::Php_Return => "'return'",
self::Php_Use => "'use'",
self::Php_Isset => "'isset'",
self::Php_Empty => "'empty'",
self::Php_ObjectOperator => "'->'",
self::Php_NullsafeObjectOperator => "'?->'",
self::Php_UndefinedsafeObjectOperator => "'??->'",
self::Php_List => "'list'",
self::Php_Array => "'array'",
self::Php_StartHeredoc => 'heredoc start',
self::Php_EndHeredoc => 'heredoc end',
self::Php_DollarOpenCurlyBraces => "'\${'",
self::Php_CurlyOpen => "'{\$'",
self::Php_PaamayimNekudotayim => "'::'",
self::Php_NsSeparator => "'\\'",
self::Php_Ellipsis => "'...'",
self::Php_ExpandCast => "'(expand)'",
self::Php_NameFullyQualified => 'fully qualified name',
self::Php_NameQualified => 'namespaced name',
self::Php_Whitespace => 'whitespace',
self::Php_Comment => 'comment',
self::Php_Null => "'null'",
self::Php_True => "'true'",
self::Php_False => "'false'",
]
|
# |
Properties | |||
---|---|---|---|
public
|
int
|
$type
|
# |
public
|
string
|
$text
|
# |
public
|
?Position
|
$position
|
# |