Index

ParenthesisDomain

MMO\core\helpers · 1 symbol · generated 30 Sep 2026

class

ParenthesisDomain

Tokenizer.php:780

Parenthesis ()

class MMO\core\helpers\ParenthesisDomain extends MMO\core\helpers\aGroupDomain
Namespace
MMO\core\helpers
Extends
aGroupDomain

Constants2

END_CHAR

const END_CHAR = ')'

START_CHAR

const START_CHAR = '('
Inherited members (16)
PropertiesDeclared byDescription
maskTokenDomain
recursiveaGroupDomain
tokensTokenDomainarray<id: string>
MethodsDeclared byDescription
addChar($char)TokenDomainRegister a single-character token (id auto-derived from the character's ord() value).
addDomains($domains)TokenDomainRegister one or more nested domains (their open is checked on every Tokenizer::next call while this domain is active).
addToken($id, $token)TokenDomainRegister a single multi-character token.
addTokens($tokens)TokenDomainRegister several tokens/domains at once.
close($tokenizer)aGroupDomainCloses on an unescaped END_CHAR.
debugName()aGroupDomain
getAllowedTokens()TokenDomain
getMask()TokenDomain
open($tokenizer)aGroupDomainOpens on an unescaped START_CHAR.
removeToken($token)TokenDomain
setTokens($tokens)aGroupDomain
updateMask()TokenDomainRecompute getMask from the current token/domain list.
__construct($tokens, $recursive)aGroupDomain