Page MenuHomePhorge

abstract class AASTTree
libphutil Technical Documentation (Parsers)

An abstract abstract syntax tree.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

abstract public function newNode($id, $data, $tree)

This method is not documented.
Parameters
$id
array$data
AASTTree$tree
Return
wild

abstract public function newToken($id, $type, $value, $offset, $tree)

This method is not documented.
Parameters
$id
$type
$value
$offset
AASTTree$tree
Return
wild

public function __construct($tree, $stream, $source)

This method is not documented.
Parameters
array$tree
array$stream
$source
Return
this//Implicit.//

final public function setTreeType($description)

This method is not documented.
Parameters
$description
Return
wild

final public function getTreeType()

This method is not documented.
Return
wild

final public function setTokenConstants($token_map)

This method is not documented.
Parameters
array$token_map
Return
wild

final public function setNodeConstants($node_map)

This method is not documented.
Parameters
array$node_map
Return
wild

final public function getNodeTypeNameFromTypeID($type_id)

This method is not documented.
Parameters
$type_id
Return
wild

final public function getNodeTypeIDFromTypeName($type_name)

This method is not documented.
Parameters
$type_name
Return
wild

final public function getTokenTypeNameFromTypeID($type_id)

This method is not documented.
Parameters
$type_id
Return
wild

final public function getTokenTypeIDFromTypeName($type_name)

This method is not documented.
Parameters
$type_name
Return
wild

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()

This method is not documented.
Return
wild

protected function buildTree($tree)

This method is not documented.
Parameters
array$tree
Return
wild

final public function getRawTokenStream()

This method is not documented.
Return
wild

public function getOffsetToLineNumberMap()

This method is not documented.
Return
wild