final class DocLexer

Simple lexer for docblock annotations.

@author Benjamin Eberlei <kontakt@beberlei.de> @author Guilherme Blanco <guilhermeblanco@hotmail.com> @author Jonathan Wage <jonwage@gmail.com> @author Roman Borschel <roman@code-factory.org> @author Johannes M. Schmitt <schmittjoh@gmail.com>

Hierarchy

  • class \Doctrine\Common\Lexer
    • class \Doctrine\Common\Annotations\DocLexer

Expanded class hierarchy of DocLexer

2 files declare their use of DocLexer

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/DocLexer.php, line 33

Namespace

Doctrine\Common\Annotations
View source

Members

Namesort descending Modifiers Type Description Overrides
DocLexer::getCatchablePatterns protected function Lexical catchable patterns. Overrides Lexer::getCatchablePatterns
DocLexer::getNonCatchablePatterns protected function Lexical non-catchable patterns. Overrides Lexer::getNonCatchablePatterns
DocLexer::getType protected function Overrides Lexer::getType
DocLexer::T_AT constant
DocLexer::T_CLOSE_CURLY_BRACES constant
DocLexer::T_CLOSE_PARENTHESIS constant
DocLexer::T_COLON constant
DocLexer::T_COMMA constant
DocLexer::T_EQUALS constant
DocLexer::T_FALSE constant
DocLexer::T_FLOAT constant
DocLexer::T_IDENTIFIER constant
DocLexer::T_INTEGER constant
DocLexer::T_NAMESPACE_SEPARATOR constant
DocLexer::T_NONE constant
DocLexer::T_NULL constant
DocLexer::T_OPEN_CURLY_BRACES constant
DocLexer::T_OPEN_PARENTHESIS constant
DocLexer::T_STRING constant
DocLexer::T_TRUE constant
Lexer::$lookahead public property
Lexer::$peek private property
Lexer::$position private property
Lexer::$token public property
Lexer::$tokens private property
Lexer::getLiteral public function Gets the literal for a given token.
Lexer::glimpse public function Peeks at the next token, returns it and immediately resets the peek.
Lexer::isA public function Checks if given value is identical to the given token
Lexer::isNextToken public function Checks whether a given token matches the current lookahead.
Lexer::isNextTokenAny public function Checks whether any of the given tokens matches the current lookahead
Lexer::moveNext public function Moves to the next token in the input string.
Lexer::peek public function Moves the lookahead token forward.
Lexer::reset public function Resets the lexer.
Lexer::resetPeek public function Resets the peek pointer to 0.
Lexer::resetPosition public function Resets the lexer position on the input to the given position.
Lexer::scan protected function Scans the input string for tokens.
Lexer::setInput public function Sets the input data to be tokenized.
Lexer::skipUntil public function Tells the lexer to skip input tokens until it sees a token with the given value.