PHP_CodeSniffer
[ class tree: PHP_CodeSniffer ] [ index: PHP_CodeSniffer ] [ all elements ]
Packages:
PHP_CodeSniffer


Classes:
PEAR_Sniffs_Commenting_InlineCommentSniff
PEAR_Sniffs_Constants_ValidConstantNameSniff
PEAR_Sniffs_ControlStructures_ControlSignatureSniff
PEAR_Sniffs_Files_IncludingFileSniff
PEAR_Sniffs_Files_LineLengthSniff
PEAR_Sniffs_Methods_FunctionCallSignatureSniff
PEAR_Sniffs_Methods_MethodCallArgumentSpacingSniff
PEAR_Sniffs_Methods_OpeningMethodBraceSniff
PEAR_Sniffs_Methods_ValidDefaultValueSniff
PEAR_Sniffs_Misc_ShortOpenTagSniff
PEAR_Sniffs_NamingConventions_ValidClassNameSniff
PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff
PEAR_Sniffs_PHP_LowerCaseConstantSniff
PEAR_Sniffs_Statements_MultipleStatementSniff
PEAR_Sniffs_Whitespace_ScopeClosingBraceSniff
PEAR_Sniffs_Whitespace_ScopeIndentSniff
PHP_CodeSniffer
PHP_CodeSniffer_CommentParser_AbstractDocElement
PHP_CodeSniffer_CommentParser_AbstractParser
PHP_CodeSniffer_CommentParser_ClassCommentParser
PHP_CodeSniffer_CommentParser_CommentElement
PHP_CodeSniffer_CommentParser_FunctionCommentParser
PHP_CodeSniffer_CommentParser_MemberCommentParser
PHP_CodeSniffer_CommentParser_PairElement
PHP_CodeSniffer_CommentParser_ParameterElement
PHP_CodeSniffer_CommentParser_ParserException
PHP_CodeSniffer_CommentParser_SingleElement
PHP_CodeSniffer_Exception
PHP_CodeSniffer_File
PHP_CodeSniffer_Sniff_Exception
PHP_CodeSniffer_Standards_AbstractPatternSniff
PHP_CodeSniffer_Standards_AbstractScopeSniff
PHP_CodeSniffer_Standards_AbstractVariableSniff
PHP_CodeSniffer_Standards_IncorrectPatternException
PHP_CodeSniffer_Tokens
Files:
AbstractDocElement.php
AbstractParser.php
AbstractPatternSniff.php
AbstractScopeSniff.php
AbstractVariableSniff.php
ClassCommentParser.php
CodeSniffer.php
CommentElement.php
ControlSignatureSniff.php
DocElement.php
Exception.php
File.php
FunctionCallSignatureSniff.php
FunctionCommentParser.php
IncludingFileSniff.php
IncorrectPatternException.php
InlineCommentSniff.php
LineLengthSniff.php
LowerCaseConstantSniff.php
MemberCommentParser.php
MethodCallArgumentSpacingSniff.php
MultipleStatementSniff.php
OpeningMethodBraceSniff.php
PairElement.php
ParameterElement.php
ParserException.php
ScopeClosingBraceSniff.php
ScopeIndentSniff.php
ShortOpenTagSniff.php
SingleElement.php
Sniff.php
SniffException.php
Tokens.php
ValidClassNameSniff.php
ValidConstantNameSniff.php
ValidDefaultValueSniff.php
ValidFunctionNameSniff.php

Class: PHP_CodeSniffer_CommentParser_CommentElement

Source Location: /PHP_CodeSniffer-0.1.1/CodeSniffer/CommentParser/CommentElement.php

Class Overview

PHP_CodeSniffer_CommentParser_AbstractDocElement
 |
 --PHP_CodeSniffer_CommentParser_SingleElement
 |
 --PHP_CodeSniffer_CommentParser_CommentElement

A class to represent Comments of a doc comment.


Author(s):

  • Squiz Pty Ltd

Methods


Inherited Variables

Class: PHP_CodeSniffer_CommentParser_SingleElement

PHP_CodeSniffer_CommentParser_SingleElement::$content
PHP_CodeSniffer_CommentParser_SingleElement::$contentWhitespace

Class: PHP_CodeSniffer_CommentParser_AbstractDocElement

PHP_CodeSniffer_CommentParser_AbstractDocElement::$afterWhitespace
PHP_CodeSniffer_CommentParser_AbstractDocElement::$nextElement
PHP_CodeSniffer_CommentParser_AbstractDocElement::$previousElement
PHP_CodeSniffer_CommentParser_AbstractDocElement::$tag
PHP_CodeSniffer_CommentParser_AbstractDocElement::$tokens

Inherited Methods

Class: PHP_CodeSniffer_CommentParser_SingleElement

PHP_CodeSniffer_CommentParser_SingleElement::__construct()
Constructs a SingleElement doc tag.
PHP_CodeSniffer_CommentParser_SingleElement::getContent()
Returns the content of this tag.
PHP_CodeSniffer_CommentParser_SingleElement::getSubElements()
Returns the element names that this tag is comprised of, in the order that they appear in the tag.
PHP_CodeSniffer_CommentParser_SingleElement::getWhitespaceBeforeContent()
Returns the witespace before the content of this tag.
PHP_CodeSniffer_CommentParser_SingleElement::processSubElement()
Processes the sub element with the specified name.

Class: PHP_CodeSniffer_CommentParser_AbstractDocElement

PHP_CodeSniffer_CommentParser_AbstractDocElement::__construct()
Constructs a Doc Element.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getLine()
Returns the line in which this element first occured.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getNextElement()
Returns the element that exists after this.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getOrder()
Returns the order that this element appears in the comment.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getPreviousElement()
Returns the element that exists before this.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getRawContent()
Returns the raw content of this element, ommiting the tag.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getSubElements()
Returns the sub element names that make up this element in the order they appear in the element.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getTag()
Returns the tag that this element represents, ommiting the @ symbol.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getWhitespaceAfter()
Returns the whitespace that exists after this element.
PHP_CodeSniffer_CommentParser_AbstractDocElement::getWhitespaceBefore()
Returns the whitespace that exists before this element.
PHP_CodeSniffer_CommentParser_AbstractDocElement::processSubElement()
Called to process each sub element as sepcified in the return value of getSubElements().

Class Details

[line 56]
A class to represent Comments of a doc comment.

Comments are in the following format.

Note that if there is no period to end the headline, the sentence before two newlines is assumed the headline comment.

  • Author: Squiz Pty Ltd


[ Top ]


Method Detail

__construct (Constructor) [line 69]

PHP_CodeSniffer_CommentParser_CommentElement __construct( PHP_CodeSniffer_CommentParser_DocElemement $previousElement, array $tokens)

Constructs a PHP_CodeSniffer_CommentParser_CommentElement.
  • Access: public

Overrides PHP_CodeSniffer_CommentParser_SingleElement::__construct() (Constructs a SingleElement doc tag.)

Parameters:

PHP_CodeSniffer_CommentParser_DocElemement $previousElement — The element that appears before this element.
array $tokens — The tokens that make up this element.

[ Top ]

getBodyComment [line 168]

string getBodyComment( )

Returns the body comment.

[ Top ]

getHeadlineComment [line 82]

string getHeadlineComment( )

Returns the headline comment.

[ Top ]

getWhitespaceAfterHeadline [line 149]

string getWhitespaceAfterHeadline( )

Returns the whitespace that exists between the headline and the comment.
  • Access: public

[ Top ]

isEmpty [line 181]

boolean isEmpty( )

Returns true if there is no comment.
  • Access: public

[ Top ]


Documentation generated on 2019年3月11日 14:44:50 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.

AltStyle によって変換されたページ (->オリジナル) /