Hoa central
Public Member Functions | Protected Attributes | List of all members
Hoa\Compiler\Llk\Rule\Invocation Class Reference
Inheritance diagram for Hoa\Compiler\Llk\Rule\Invocation:

Public Member Functions

 __construct ($rule, $data, Array $todo=null, $depth=-1)
 
 getRule ()
 
 getData ()
 
 getTodo ()
 
 setDepth ($depth)
 
 getDepth ()
 
 isTransitional ()
 

Protected Attributes

 $_rule = null
 
 $_data = null
 
 $_todo = null
 
 $_depth = -1
 
 $_transitional = false
 

Detailed Description

Class .

Parent of entry and ekzit rules.

Definition at line 47 of file Invocation.php.

Constructor & Destructor Documentation

Hoa\Compiler\Llk\Rule\Invocation::__construct (   $rule,
  $data,
Array  $todo = null,
  $depth = -1 
)

Constructor.

Parameters
string$ruleRule name.
mixed$dataData.
array$todoTodo.
int$depthDepth.
Returns
void

Definition at line 96 of file Invocation.php.

101  {
102  $this->_rule = $rule;
103  $this->_data = $data;
104  $this->_todo = $todo;
105  $this->_depth = $depth;
106  $this->_transitional = is_numeric($rule);
107 
108  return;
109  }

Member Function Documentation

Hoa\Compiler\Llk\Rule\Invocation::getData ( )

Get data.

Returns
mixed

Definition at line 126 of file Invocation.php.

127  {
128  return $this->_data;
129  }
Hoa\Compiler\Llk\Rule\Invocation::getDepth ( )

Get depth in trace.

Returns
int

Definition at line 160 of file Invocation.php.

161  {
162  return $this->_depth;
163  }
Hoa\Compiler\Llk\Rule\Invocation::getRule ( )

Get rule name.

Returns
string

Definition at line 116 of file Invocation.php.

117  {
118  return $this->_rule;
119  }
Hoa\Compiler\Llk\Rule\Invocation::getTodo ( )

Get todo sequence.

Returns
array

Definition at line 136 of file Invocation.php.

137  {
138  return $this->_todo;
139  }
Hoa\Compiler\Llk\Rule\Invocation::isTransitional ( )

Check whether the rule is transitional or not.

Returns
bool

Definition at line 170 of file Invocation.php.

171  {
172  return $this->_transitional;
173  }
Hoa\Compiler\Llk\Rule\Invocation::setDepth (   $depth)

Set depth in trace.

int $depth Depth.

Returns
int

Definition at line 147 of file Invocation.php.

148  {
149  $old = $this->_depth;
150  $this->_depth = $depth;
151 
152  return $old;
153  }

Member Data Documentation

Hoa\Compiler\Llk\Rule\Invocation::$_data = null
protected

Definition at line 61 of file Invocation.php.

Hoa\Compiler\Llk\Rule\Invocation::$_depth = -1
protected

Definition at line 75 of file Invocation.php.

Hoa\Compiler\Llk\Rule\Invocation::$_rule = null
protected

Definition at line 54 of file Invocation.php.

Hoa\Compiler\Llk\Rule\Invocation::$_todo = null
protected

Definition at line 68 of file Invocation.php.

Hoa\Compiler\Llk\Rule\Invocation::$_transitional = false
protected

Definition at line 83 of file Invocation.php.


The documentation for this class was generated from the following file: