private function getPlainValue()
    {
        // check if array, then hand off
        if ($this->lexer->isNextToken(DocLexer::T_OPEN_CURLY_BRACES)) {
            return $this->getArray();
        }

        // check if nested annotation, then hand off
        if ($this->lexer->isNextToken(DocLexer::T_AT)) {
            return $this->getAnnotation();
        }

        // check if constant, then hand off
        if ($this->lexer->isNextToken(DocLexer::T_IDENTIFIER)) {
            return $this->getConstant();
        }

        $tokens = array();

        // determine type, or throw syntax error if unrecognized
        switch ($this->lexer->lookahead['type']) {
            case DocLexer::T_FALSE:
            case DocLexer::T_FLOAT:
            case DocLexer::T_INTEGER:
            case DocLexer::T_NULL:
            case DocLexer::T_STRING:
            case DocLexer::T_TRUE:
                $this->match($this->lexer->lookahead['type']);

                $tokens[] = array(
                    $this->lexer->token['type'],
                    $this->lexer->token['value']
                );

                break;
            default:
                throw SyntaxException::expectedToken(
                    'PlainValue',
                    null,
                    $this->lexer
                );
        }

        return $tokens;
    }
private function getPlainValue()
    {
        // check if array, then hand off
        if ($this->lexer->isNextToken(DocLexer::T_OPEN_CURLY_BRACES)) {
            return $this->getArray();
        }

        // check if nested annotation, then hand off
        if ($this->lexer->isNextToken(DocLexer::T_AT)) {
            return $this->getAnnotation();
        }

        // check if constant, then hand off
        if ($this->lexer->isNextToken(DocLexer::T_IDENTIFIER)) {
            return $this->getConstant();
        }

        $tokens = array();

        // determine type, or throw syntax error if unrecognized
        switch ($this->lexer->lookahead['type']) {
            case DocLexer::T_FALSE:
            case DocLexer::T_FLOAT:
            case DocLexer::T_INTEGER:
            case DocLexer::T_NULL:
            case DocLexer::T_STRING:
            case DocLexer::T_TRUE:
                $this->match($this->lexer->lookahead['type']);

                $tokens[] = array(
                    $this->lexer->token['type'],
                    $this->lexer->token['value']
                );

                break;
            default:
                throw SyntaxException::expectedToken(
                    'PlainValue',
                    null,
                    $this->lexer
                );
        }

        return $tokens;
    }
private function getPlainValue ( ) { // check if array, then hand off if ( $ this -> lexer -> isNextToken ( DocLexer :: T_OPEN_CURLY_BRACES ) ) { return $ this -> getArray ( ) ; } // check if nested annotation, then hand off if ( $ this -> lexer -> isNextToken ( DocLexer :: T_AT ) ) { return $ this -> getAnnotation ( ) ; } // check if constant, then hand off if ( $ this -> lexer -> isNextToken ( DocLexer :: T_IDENTIFIER ) ) { return $ this -> getConstant ( ) ; } $ tokens = array ( ) ; // determine type, or throw syntax error if unrecognized switch ( $ this -> lexer -> lookahead [ 'type' ] ) { case DocLexer :: T_FALSE : case DocLexer :: T_FLOAT : case DocLexer :: T_INTEGER : case DocLexer :: T_NULL : case DocLexer :: T_STRING : case DocLexer :: T_TRUE : $ this -> match ( $ this -> lexer -> lookahead [ 'type' ] ) ; $ tokens [ ] = array ( $ this -> lexer -> token [ 'type' ] , $ this -> lexer -> token [ 'value' ] ) ; break ; default : throw SyntaxException :: expectedToken ( 'PlainValue' , null , $ this -> lexer ) ; } return $ tokens ; }
Returns the tokens for the next "plain" value.

@return array The tokens.

@throws Exception
@throws SyntaxException If a syntax error is found.
Returns the tokens for the next plain value .