PHP Class Trismegiste\Mondrian\Visitor\VisitorGateway

CoR / State / Visitor
Inheritance: extends PhpParser\NodeVisitorAbstract, implements Trismegiste\Mondrian\Visitor\State\VisitorContext
ファイルを表示 Open project: trismegiste/mondrian Class Usage Examples

Protected Properties

Property Type Description
$graph
$graphCtx
$reflectionCtx
$stateList array Map of state
$stateStack array Stack of previous state

Public Methods

Method Description
__construct ( array $visitor, ReflectionContext $ref, GraphContext $grf, Trismegiste\Mondrian\Graph\Graph $g ) Ctor
enterNode ( PhpParser\Node $node )
getGraph ( )
getGraphContext ( )
getNodeFor ( $stateKey )
getReflectionContext ( )
getState ( $stateKey )
leaveNode ( PhpParser\Node $node )
pushState ( $stateKey, PhpParser\Node $node )

Method Details

__construct() public method

Ctor
public __construct ( array $visitor, ReflectionContext $ref, GraphContext $grf, Trismegiste\Mondrian\Graph\Graph $g )
$visitor array a list of State
$ref Trismegiste\Mondrian\Transform\ReflectionContext
$grf Trismegiste\Mondrian\Transform\GraphContext
$g Trismegiste\Mondrian\Graph\Graph

enterNode() public method

public enterNode ( PhpParser\Node $node )
$node PhpParser\Node

getGraph() public method

public getGraph ( )

getGraphContext() public method

public getGraphContext ( )

getNodeFor() public method

public getNodeFor ( $stateKey )

getReflectionContext() public method

getState() public method

public getState ( $stateKey )

leaveNode() public method

public leaveNode ( PhpParser\Node $node )
$node PhpParser\Node

pushState() public method

public pushState ( $stateKey, PhpParser\Node $node )
$node PhpParser\Node

Property Details

$graph protected_oe property

protected $graph

$graphCtx protected_oe property

protected $graphCtx

$reflectionCtx protected_oe property

protected $reflectionCtx

$stateList protected_oe property

Map of state
protected array $stateList
return array

$stateStack protected_oe property

Stack of previous state
protected array $stateStack
return array