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

Public Member Functions

 __construct ($name, $min, $max, $content, $nodeId)
 
 getMin ()
 
 getMax ()
 
- Public Member Functions inherited from Hoa\Compiler\Llk\Rule\Rule
 __construct ($name, $content, $nodeId=null)
 
 setName ($name)
 
 getName ()
 
 getContent ()
 
 setNodeId ($nodeId)
 
 getNodeId ()
 
 getNodeOptions ()
 
 setDefaultId ($defaultId)
 
 getDefaultId ()
 
 getDefaultOptions ()
 
 setPPRepresentation ($pp)
 
 getPPRepresentation ()
 
 isTransitional ()
 

Protected Attributes

 $_min = 0
 
 $_max = 0
 
- Protected Attributes inherited from Hoa\Compiler\Llk\Rule\Rule
 $_name = null
 
 $_content = null
 
 $_nodeId = null
 
 $_nodeOptions = []
 
 $_defaultId = null
 
 $_defaultOptions = []
 
 $_pp = null
 
 $_transitional = true
 

Additional Inherited Members

- Protected Member Functions inherited from Hoa\Compiler\Llk\Rule\Rule
 setContent ($content)
 

Detailed Description

Class .

The repetition rule.

Definition at line 47 of file Repetition.php.

Constructor & Destructor Documentation

Hoa\Compiler\Llk\Rule\Repetition::__construct (   $name,
  $min,
  $max,
  $content,
  $nodeId 
)

Constructor.

Parameters
string$nameName.
int$minMinimum bound.
int$maxMaximum bound.
mixed$contentContent.
string$nodeIdNode ID.
Returns
void

Definition at line 75 of file Repetition.php.

76  {
77  parent::__construct($name, $content, $nodeId);
78  $this->_min = $min;
79  $this->_max = $max;
80 
81  return;
82  }
$content
Definition: Hoa.php:119

Member Function Documentation

Hoa\Compiler\Llk\Rule\Repetition::getMax ( )

Get maximum bound.

Returns
int

Definition at line 99 of file Repetition.php.

100  {
101  return $this->_max;
102  }
Hoa\Compiler\Llk\Rule\Repetition::getMin ( )

Get minimum bound.

Returns
int

Definition at line 89 of file Repetition.php.

90  {
91  return $this->_min;
92  }

Member Data Documentation

Hoa\Compiler\Llk\Rule\Repetition::$_max = 0
protected

Definition at line 61 of file Repetition.php.

Hoa\Compiler\Llk\Rule\Repetition::$_min = 0
protected

Definition at line 54 of file Repetition.php.


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