PHP 클래스 PhpCss\Ast\Visitor\Xpath

상속: extends Overload
파일 보기 프로젝트 열기: ThomasWeinert/PhpCss

공개 메소드들

메소드 설명
__construct ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX ) Create visitor and store mode options
__toString ( ) Return the collected selector string
clear ( ) Clear the visitor object to visit another selector group
hasOption ( $option ) : integer Read the status of an option
setOptions ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX ) Validate and store the options.
visitEnterSelectorSequence ( Sequence $sequence ) : boolean If here is already data in the buffer, add a separator before starting the next.
visitEnterSelectorSequenceGroup ( Group $group ) : boolean Validate the buffer before visiting a Ast\Selector\Group.
visitEnterSelectorSimplePseudoClass ( PseudoClass $pseudoClass )
visitLeaveSelectorSequence ( ) : boolean If the visitor is in the condition status, close it.
visitLeaveSelectorSimplePseudoClass ( )
visitSelectorCombinatorChild ( )
visitSelectorCombinatorDescendant ( )
visitSelectorCombinatorFollower ( )
visitSelectorCombinatorNext ( )
visitSelectorSimpleAttribute ( PhpCss\Ast\Selector\Simple\Attribute $attribute )
visitSelectorSimpleClassName ( ClassName $class ) : boolean Output the class selector to the buffer
visitSelectorSimpleId ( Id $id ) : boolean Output the class selector to the buffer
visitSelectorSimplePseudoClass ( PseudoClass $pseudoClass )
visitSelectorSimplePseudoClassLanguage ( Language $language )
visitSelectorSimplePseudoClassPosition ( Position $position )
visitSelectorSimplePseudoElement ( PseudoElement $pseudoElement )
visitSelectorSimpleType ( Type $type ) : boolean Output the type (element name) selector to the buffer
visitSelectorSimpleUniversal ( Universal $universal ) : boolean Output the universal type (* or xmlns|*) selector to the buffer

비공개 메소드들

메소드 설명
add ( string $string ) Add a string to the buffer
addCondition ( $condition ) prepare buffer to add a condition to the xpath expression
endConditions ( ) end condition if in condition status
quoteLiteral ( string $literal ) : string Quote literal if needed
setElement ( $element )
status ( null | integer $status = NULL ) : integer Get/Set the current visiting status
strtolower ( $string ) : string Use unicode aware strtolower if available

메소드 상세

__construct() 공개 메소드

Create visitor and store mode options
public __construct ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX )
$options integer
$defaultPrefix string

__toString() 공개 메소드

Return the collected selector string
public __toString ( )

clear() 공개 메소드

Clear the visitor object to visit another selector group
public clear ( )

hasOption() 공개 메소드

Read the status of an option
public hasOption ( $option ) : integer
$option
리턴 integer

setOptions() 공개 메소드

Validate and store the options.
public setOptions ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX )
$options integer
$defaultPrefix string

visitEnterSelectorSequence() 공개 메소드

If here is already data in the buffer, add a separator before starting the next.
public visitEnterSelectorSequence ( Sequence $sequence ) : boolean
$sequence PhpCss\Ast\Selector\Sequence
리턴 boolean

visitEnterSelectorSequenceGroup() 공개 메소드

If the buffer already contains data, throw an exception.
public visitEnterSelectorSequenceGroup ( Group $group ) : boolean
$group PhpCss\Ast\Selector\Group
리턴 boolean

visitEnterSelectorSimplePseudoClass() 공개 메소드

public visitEnterSelectorSimplePseudoClass ( PseudoClass $pseudoClass )
$pseudoClass PhpCss\Ast\Selector\Simple\PseudoClass

visitLeaveSelectorSequence() 공개 메소드

If the visitor is in the condition status, close it.

visitLeaveSelectorSimplePseudoClass() 공개 메소드

visitSelectorCombinatorChild() 공개 메소드

visitSelectorCombinatorDescendant() 공개 메소드

visitSelectorCombinatorFollower() 공개 메소드

visitSelectorCombinatorNext() 공개 메소드

visitSelectorSimpleAttribute() 공개 메소드

public visitSelectorSimpleAttribute ( PhpCss\Ast\Selector\Simple\Attribute $attribute )
$attribute PhpCss\Ast\Selector\Simple\Attribute

visitSelectorSimpleClassName() 공개 메소드

Output the class selector to the buffer
public visitSelectorSimpleClassName ( ClassName $class ) : boolean
$class PhpCss\Ast\Selector\Simple\ClassName
리턴 boolean

visitSelectorSimpleId() 공개 메소드

Output the class selector to the buffer
public visitSelectorSimpleId ( Id $id ) : boolean
$id PhpCss\Ast\Selector\Simple\Id
리턴 boolean

visitSelectorSimplePseudoClass() 공개 메소드

public visitSelectorSimplePseudoClass ( PseudoClass $pseudoClass )
$pseudoClass PhpCss\Ast\Selector\Simple\PseudoClass

visitSelectorSimplePseudoClassLanguage() 공개 메소드

public visitSelectorSimplePseudoClassLanguage ( Language $language )
$language PhpCss\Ast\Selector\Simple\PseudoClass\Language

visitSelectorSimplePseudoClassPosition() 공개 메소드

public visitSelectorSimplePseudoClassPosition ( Position $position )
$position PhpCss\Ast\Selector\Simple\PseudoClass\Position

visitSelectorSimplePseudoElement() 공개 메소드

public visitSelectorSimplePseudoElement ( PseudoElement $pseudoElement )
$pseudoElement PhpCss\Ast\Selector\Simple\PseudoElement

visitSelectorSimpleType() 공개 메소드

Output the type (element name) selector to the buffer
public visitSelectorSimpleType ( Type $type ) : boolean
$type PhpCss\Ast\Selector\Simple\Type
리턴 boolean

visitSelectorSimpleUniversal() 공개 메소드

Output the universal type (* or xmlns|*) selector to the buffer
public visitSelectorSimpleUniversal ( Universal $universal ) : boolean
$universal PhpCss\Ast\Selector\Simple\Universal
리턴 boolean