public function __get($name)Inherited
$name |
wild |
public function __set($name, $value)Inherited
$name | ||
$value |
wild |
public function current()Inherited
wild |
public function key()Inherited
wild |
public function next()Inherited
wild |
public function rewind()Inherited
wild |
public function valid()Inherited
wild |
private function throwOnAttemptedIteration()Inherited
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
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.
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
string | Value of the constant. |
abstract public function isStaticScalar()
wild |
abstract public function getDocblockToken()
wild |
abstract public function evalStatic()
wild |
abstract public function getStringLiteralValue()
wild |
public function __construct($id, $data, $tree)
$id | ||
array | $data | |
AASTTree | $tree |
this | //Implicit.// |
final public function getParentNode()
wild |
final public function setParentNode($node)
AASTNode | $node |
wild |
final public function getPreviousSibling()
wild |
final public function setPreviousSibling($node)
AASTNode | $node |
wild |
final public function getNextSibling()
wild |
final public function setNextSibling($node)
AASTNode | $node |
wild |
final public function getID()
wild |
final public function getTypeID()
wild |
final public function getTree()
wild |
final public function getTypeName()
wild |
final public function getChildren()
wild |
final public function setChildren($children)
array | $children |
wild |
public function getChildrenOfType($type)
$type |
wild |
public function getChildOfType($index, $type)
$index | ||
$type |
wild |
public function getChildByIndex($index)
$index |
wild |
public function buildSelectCache()
Build a cache to improve the performance of selectDescendantsOfType(). This cache makes a time/memory tradeoff by aggressively caching node descendants. It may improve the tree's query performance substantially if you make a large number of queries, but also requires a significant amount of memory.
This builds a cache for the entire tree and improves performance of all selectDescendantsOfType() calls.
wild |
public function buildTokenCache()
Build a cache to improve the performance of selectTokensOfType(). This cache makes a time/memory tradeoff by aggressively caching token types. It may improve the tree's query performance substantially if you make a large number of queries, but also requires a significant amount of memory.
This builds a cache for this node only.
wild |
public function selectTokensOfType($type_name)
$type_name |
wild |
public function selectTokensOfTypes($type_names)
Select all tokens of any given types.
array | $type_names |
wild |
final public function isDescendantOf($node)
AASTNode | $node |
wild |
public function selectDescendantsOfType($type_name)
$type_name |
wild |
public function selectDescendantsOfTypes($type_names)
array | $type_names |
wild |
protected function executeSelectDescendantsOfType($node, $type)
$node | ||
$type |
wild |
public function getTokens()
wild |
public function getConcreteString()
wild |
public function getSemanticString()
wild |
public function getIndentation()
wild |
public function getDescription()
wild |
final protected function getTypeIDFromTypeName($type_name)
$type_name |
wild |
final public function getOffset()
wild |
final public function getLength()
wild |
public function getSurroundingNonsemanticTokens()
wild |
final public function getLineNumber()
wild |
final public function getEndLineNumber()
wild |
final public function isAfter($node)
Determines whether the current node appears after a specified node in the tree.
AASTNode | $node |
bool |
final public function isBefore($node)
Determines whether the current node appears before a specified node in the tree.
AASTNode | $node |
bool |
final public function containsDescendant($node)
Determines whether a specified node is a descendant of the current node.
AASTNode | $node |
bool |
public function dispose()
wild |