PHP Interface Storm\Drivers\Fluent\Object\Functional\IAST

Exibir arquivo Open project: timetoogo/penumbra Interface Usage Examples

Public Methods

Method Description
ExpandVariables ( ) Removes variables from the AST by expanding the node into their original expresions Example: $Var = 2 + 5; $Foo += $Var - 3; -- Becomes -- $Foo += (2 + 5) - 3;
GetEntityMap ( ) : Storm\Core\Object\IEntityMap
GetEntityVariableName ( )
GetPropertyMode ( )
GetReturnNodes ( ) : Storm\Drivers\Fluent\Object\Functional\INode[]
GetUnresolvedVariables ( ) : array
HasEntityMap ( ) : boolean
HasReturnNode ( )
IsResolved ( )
ParseNode ( Storm\Drivers\Fluent\Object\Functional\INode $Node ) : Expression
ParseNodes ( array $Nodes = null ) : Expression[]
Resolve ( array $VariableValueMap )
SetEntityMap ( Storm\Core\Object\IEntityMap $EntityMap ) : Storm\Core\Object\IEntityMap
SetPropertyMode ( $PropertyMode )
Simplify ( ) Simplifies the expression tree where possible Example: 2 + 5; -- Becomes -- 7;

Method Details

ExpandVariables() public method

Removes variables from the AST by expanding the node into their original expresions Example: $Var = 2 + 5; $Foo += $Var - 3; -- Becomes -- $Foo += (2 + 5) - 3;
public ExpandVariables ( )

GetEntityMap() public method

public GetEntityMap ( ) : Storm\Core\Object\IEntityMap
return Storm\Core\Object\IEntityMap

GetEntityVariableName() public method

GetPropertyMode() public method

public GetPropertyMode ( )

GetReturnNodes() public method

public GetReturnNodes ( ) : Storm\Drivers\Fluent\Object\Functional\INode[]
return Storm\Drivers\Fluent\Object\Functional\INode[]

GetUnresolvedVariables() public method

public GetUnresolvedVariables ( ) : array
return array The names of the unresolved variables

HasEntityMap() public method

public HasEntityMap ( ) : boolean
return boolean

HasReturnNode() public method

public HasReturnNode ( )

IsResolved() public method

public IsResolved ( )

ParseNode() public method

public ParseNode ( Storm\Drivers\Fluent\Object\Functional\INode $Node ) : Expression
$Node Storm\Drivers\Fluent\Object\Functional\INode
return Storm\Core\Object\Expressions\Expression

ParseNodes() public method

public ParseNodes ( array $Nodes = null ) : Expression[]
$Nodes array
return Storm\Core\Object\Expressions\Expression[]

Resolve() public method

public Resolve ( array $VariableValueMap )
$VariableValueMap array

SetEntityMap() public method

public SetEntityMap ( Storm\Core\Object\IEntityMap $EntityMap ) : Storm\Core\Object\IEntityMap
$EntityMap Storm\Core\Object\IEntityMap
return Storm\Core\Object\IEntityMap

SetPropertyMode() public method

public SetPropertyMode ( $PropertyMode )

Simplify() public method

Simplifies the expression tree where possible Example: 2 + 5; -- Becomes -- 7;
public Simplify ( )