Class: phpDocumentor_HighlightWordParser

Source Location: /phpDocumentor/HighlightParser.inc

Class Overview [line 69]

WordParser
   |
   --phpDocumentorTWordParser
      |
      --phpDocumentor_HighlightWordParser

Retrieve tokens from an array of tokens organized by line numbers

Author(s):

Version:

  • Release: @VER@

Copyright:

  • 2002-2008 Gregory Beaver

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods

Class: phpDocumentorTWordParser

phpDocumentorTWordParser::addFileSource()
Wrapper for addSource() used to retrieve the entire source code organized by line number in setup()
phpDocumentorTWordParser::addSource()
Generate source token arrays organized by line number
phpDocumentorTWordParser::backupPos()
backs the parser up to the previous position
phpDocumentorTWordParser::concatTokens()
Utility function to convert a series of tokens into a string
phpDocumentorTWordParser::findGlobal()
Tell the phpDocumentorTWordParser to return the entire global variable if it is found.
phpDocumentorTWordParser::getFileSource()
gets the source code tokens
phpDocumentorTWordParser::getSource()
loads up next set of source code
phpDocumentorTWordParser::getWord()
Retrieve a token for the phpDocumentorTParser
phpDocumentorTWordParser::setup()
Uses http://www.php.net/token_get_all to tokenize the source code.
phpDocumentorTWordParser::tokenEquals()
Utility function to determine whether two tokens from the tokenizer are equal

Class: WordParser

WordParser::backupPos()
Backup to the previous token so that it can be retrieved again in a new context.
WordParser::getBlock()
Unused
WordParser::getPos()
Returns the current pointer position, or 1 character after the end of the word
WordParser::getSource()
Retrieve source code for the last function/method
WordParser::getWord()
Retrieve a token from the token list
WordParser::setPos()
Set the internal cursor within the source code
WordParser::setSeperator()
Sets the list of possible separator tokens
WordParser::setup()
Initialize the WordParser
WordParser::setWhitespace()
set parser to return or strip whitespace


Class Details

Retrieve tokens from an array of tokens organized by line numbers

Tags:

[ Top ]


Class Variables


Class Methods

backupPos

void backupPos( array|string $last_token, [bool $is_pos = false])

[line 172]

back the word parser to the previous token as defined by $last_token

Overrides phpDocumentorTWordParser::backupPos() (backs the parser up to the previous position)

Parameters:

  • array|string $last_token - token, or output from nextToken()
  • bool $is_pos - if true, backupPos interprets $last_token to be the position in the internal token array of the last token

[ Top ]

getWord

array|string getWord( )

[line 147]

Retrieve the next token

Tags:

  • return - either array(PHP token constant, token) or string non-specific separator

Overrides phpDocumentorTWordParser::getWord() (Retrieve a token for the phpDocumentorTParser)

Parameters:

[ Top ]

nextToken

array nextToken( )

[line 127]

Retrieve the position of the next token that will be parsed in the internal token array

Tags:

  • return - format: array(line number, position)

Parameters:

[ Top ]

setup

void setup( array &$input, phpDocumentor_HighlightParser &$parser)

[line 85]

Initialize the parser object

Overrides phpDocumentorTWordParser::setup() (Uses http://www.php.net/token_get_all to tokenize the source code.)

Parameters:

[ Top ]


Class Constants


Documentation generated on Tue, 06 Dec 2011 07:06:41 -0600 by phpDocumentor 1.4.4