abstract public function newNode($id, $data, $tree)
abstract public function newNode($id, $data, $tree)
Parameters
$id | ||
array | $data | |
AASTTree | $tree |
Return
wild |
abstract public function newToken($id, $type, $value, $offset, $tree)
abstract public function newToken($id, $type, $value, $offset, $tree)
Parameters
$id | ||
$type | ||
$value | ||
$offset | ||
AASTTree | $tree |
Return
wild |
public function __construct($tree, $stream, $source)
public function __construct($tree, $stream, $source)
Parameters
array | $tree | |
array | $stream | |
$source |
Return
this | //Implicit.// |
final public function setTreeType($description)
final public function setTreeType($description)
Parameters
$description |
Return
wild |
final public function getTreeType()
final public function getTreeType()
Return
wild |
final public function setTokenConstants($token_map)
final public function setTokenConstants($token_map)
Parameters
array | $token_map |
Return
wild |
final public function setNodeConstants($node_map)
final public function setNodeConstants($node_map)
Parameters
array | $node_map |
Return
wild |
final public function getNodeTypeNameFromTypeID($type_id)
final public function getNodeTypeNameFromTypeID($type_id)
Parameters
$type_id |
Return
wild |
final public function getNodeTypeIDFromTypeName($type_name)
final public function getNodeTypeIDFromTypeName($type_name)
Parameters
$type_name |
Return
wild |
final public function getTokenTypeNameFromTypeID($type_id)
final public function getTokenTypeNameFromTypeID($type_id)
Parameters
$type_id |
Return
wild |
final public function getTokenTypeIDFromTypeName($type_name)
final public function getTokenTypeIDFromTypeName($type_name)
Parameters
$type_name |
Return
wild |
public function dispose()
public function dispose()
Unlink internal datastructures so that PHP will garbage collect the tree.
This renders the object useless.
Return
void |
final public function getRootNode()
final public function getRootNode()
Return
wild |
protected function buildTree($tree)
protected function buildTree($tree)
Parameters
array | $tree |
Return
wild |
final public function getRawTokenStream()
final public function getRawTokenStream()
Return
wild |
public function getOffsetToLineNumberMap()
public function getOffsetToLineNumberMap()
Return
wild |