Lines Matching refs:this

107         $this->source = $source ?? self::emptySource();
108 $this->type = $type;
109 $this->channel = $channel ?? Token::DEFAULT_CHANNEL;
110 $this->start = $start;
111 $this->stop = $stop;
113 $tokenSource = $this->source->a;
116 $this->line = $tokenSource->getLine();
117 $this->charPositionInLine = $tokenSource->getCharPositionInLine();
145 $token = new self($this->type, $this->source, $this->channel, $this->start, $this->stop);
147 $token->index = $this->index;
148 $token->line = $this->line;
149 $token->charPositionInLine = $this->charPositionInLine;
151 $token->setText($this->text);
158 return $this->type;
163 $this->type = $type;
168 return $this->line;
173 $this->line = $line;
178 if ($this->text !== null) {
179 return $this->text;
182 $input = $this->getInputStream();
190 if ($this->start < $n && $this->stop < $n) {
191 return $input->getText($this->start, $this->stop);
198 * Explicitly set the text for this token. If `text` is not `null`, then
199 * {@see CommonToken::getText()} will return this value rather than
208 $this->text = $text;
213 return $this->charPositionInLine;
218 $this->charPositionInLine = $charPositionInLine;
223 return $this->channel;
228 $this->channel = $channel;
233 return $this->start;
238 $this->start = $index;
243 return $this->stop;
248 $this->stop = $index;
253 return $this->index;
258 $this->index = $tokenIndex;
263 $source = $this->source->a;
274 $stream = $this->source->b;
285 return $this->source;
292 $this->getTokenIndex(),
293 $this->start,
294 $this->stop,
295 StringUtils::escapeWhitespace($this->getText() ?? ''),
296 $this->type,
297 $this->channel > 0 ? ',channel=' . $this->channel : '',
298 $this->line,
299 $this->charPositionInLine