PHP Class PHPCfg\Printer

Datei anzeigen Open project: ircmaxell/php-cfg Class Usage Examples

Public Methods

Method Description
__construct ( )
printFunc ( Func $func )
printScript ( Script $script )

Protected Methods

Method Description
enqueueBlock ( Block $block )
getBlockId ( Block $block )
getVarId ( Operand $var )
indent ( $str, $levels = 1 )
render ( Func $func )
renderAssertion ( Assertion $assert )
renderOp ( Op $op )
renderOperand ( Operand $var )
reset ( )

Method Details

__construct() public method

public __construct ( )

enqueueBlock() protected method

protected enqueueBlock ( Block $block )
$block Block

getBlockId() protected method

protected getBlockId ( Block $block )
$block Block

getVarId() protected method

protected getVarId ( Operand $var )
$var Operand

indent() protected method

protected indent ( $str, $levels = 1 )

printFunc() abstract public method

abstract public printFunc ( Func $func )
$func Func

printScript() abstract public method

abstract public printScript ( Script $script )
$script Script

render() protected method

protected render ( Func $func )
$func Func

renderAssertion() protected method

protected renderAssertion ( Assertion $assert )
$assert Assertion

renderOp() protected method

protected renderOp ( Op $op )
$op Op

renderOperand() protected method

protected renderOperand ( Operand $var )
$var Operand

reset() protected method

protected reset ( )