PHP Class Patchwork\CodeManipulation\Source

Afficher le fichier Open project: antecedent/patchwork Class Usage Examples

Méthodes publiques

Свойство Type Description
$code
$file
$levelBeginnings
$levelEndings
$levels
$matchingBrackets
$spliceLengths
$splices
$tokens
$tokensByLevel
$tokensByLevelAndType
$tokensByType

Méthodes publiques

Méthode Description
__construct ( $string )
__toString ( )
all ( $types )
collectBracketMatchings ( )
collectLevelInfo ( )
createCodeFromTokens ( )
flush ( )
has ( $types )
indexTokensByType ( )
initialize ( )
is ( $types, $offset )
junk ( )
lastSibling ( $offset )
match ( $offset )
next ( $types, $offset )
nextSibling ( $types, $offset )
read ( $offset, $count = 1 )
siblings ( $types, $offset )
skip ( $types, $offset, $direction = 1 )
skipBack ( $types, $offset )
splice ( $splice, $offset, $length, $policy = self::OVERWRITE )
within ( $types, $low, $high )

Method Details

__construct() public méthode

public __construct ( $string )

__toString() public méthode

public __toString ( )

all() public méthode

public all ( $types )

collectBracketMatchings() public méthode

collectLevelInfo() public méthode

public collectLevelInfo ( )

createCodeFromTokens() public méthode

flush() public méthode

public flush ( )

has() public méthode

public has ( $types )

indexTokensByType() public méthode

public indexTokensByType ( )

initialize() public méthode

public initialize ( )

is() public méthode

public is ( $types, $offset )

junk() static public méthode

static public junk ( )

lastSibling() public méthode

public lastSibling ( $offset )

match() public méthode

public match ( $offset )

next() public méthode

public next ( $types, $offset )

nextSibling() public méthode

public nextSibling ( $types, $offset )

read() public méthode

public read ( $offset, $count = 1 )

siblings() public méthode

public siblings ( $types, $offset )

skip() public méthode

public skip ( $types, $offset, $direction = 1 )

skipBack() public méthode

public skipBack ( $types, $offset )

splice() public méthode

public splice ( $splice, $offset, $length, $policy = self::OVERWRITE )

within() public méthode

public within ( $types, $low, $high )

Property Details

$code public_oe property

public $code

$file public_oe property

public $file

$levelBeginnings public_oe property

public $levelBeginnings

$levelEndings public_oe property

public $levelEndings

$levels public_oe property

public $levels

$matchingBrackets public_oe property

public $matchingBrackets

$spliceLengths public_oe property

public $spliceLengths

$splices public_oe property

public $splices

$tokens public_oe property

public $tokens

$tokensByLevel public_oe property

public $tokensByLevel

$tokensByLevelAndType public_oe property

public $tokensByLevelAndType

$tokensByType public_oe property

public $tokensByType