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. |
public function isStaticScalar()
wild |
public function getDocblockToken()
wild |
public function evalStatic()
wild |
public function getStringLiteralValue()
wild |
public function __construct($id, $data, $tree)Inherited
$id | ||
array | $data | |
AASTTree | $tree |
this | //Implicit.// |
final public function getParentNode()Inherited
wild |
final public function setParentNode($node)Inherited
AASTNode | $node |
wild |
final public function getPreviousSibling()Inherited
wild |
final public function setPreviousSibling($node)Inherited
AASTNode | $node |
wild |
final public function getNextSibling()Inherited
wild |
final public function setNextSibling($node)Inherited
AASTNode | $node |
wild |
final public function getID()Inherited
wild |
final public function getTypeID()Inherited
wild |
final public function getTree()Inherited
wild |
final public function getTypeName()Inherited
wild |
final public function getChildren()Inherited
wild |
final public function setChildren($children)Inherited
array | $children |
wild |
public function getChildrenOfType($type)Inherited
$type |
wild |
public function getChildOfType($index, $type)Inherited
$index | ||
$type |
wild |
public function getChildByIndex($index)Inherited
$index |
wild |
public function buildSelectCache()Inherited
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()Inherited
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)Inherited
$type_name |
wild |
public function selectTokensOfTypes($type_names)Inherited
Select all tokens of any given types.
array | $type_names |
wild |
final public function isDescendantOf($node)Inherited
AASTNode | $node |
wild |
public function selectDescendantsOfType($type_name)Inherited
$type_name |
wild |
public function selectDescendantsOfTypes($type_names)Inherited
array | $type_names |
wild |
protected function executeSelectDescendantsOfType($node, $type)Inherited
$node | ||
$type |
wild |
public function getTokens()Inherited
wild |
public function getConcreteString()Inherited
wild |
public function getSemanticString()Inherited
wild |
public function getIndentation()Inherited
wild |
public function getDescription()Inherited
wild |
final protected function getTypeIDFromTypeName($type_name)Inherited
$type_name |
wild |
final public function getOffset()Inherited
wild |
final public function getLength()Inherited
wild |
public function getSurroundingNonsemanticTokens()Inherited
wild |
final public function getLineNumber()Inherited
wild |
final public function getEndLineNumber()Inherited
wild |
final public function isAfter($node)Inherited
Determines whether the current node appears after a specified node in the tree.
AASTNode | $node |
bool |
final public function isBefore($node)Inherited
Determines whether the current node appears before a specified node in the tree.
AASTNode | $node |
bool |
final public function containsDescendant($node)Inherited
Determines whether a specified node is a descendant of the current node.
AASTNode | $node |
bool |
public function dispose()Inherited
wild |
public function isConstantString()
wild |
public function isConstantStringWithMagicConstants()
wild |
private function checkIsConstantString($additional_types)
array | $additional_types |
wild |
public function getStringVariables()
wild |
private function newStringLiteralFromSemanticString($value)
$value |
wild |
public function getNamespace(...)
Determines the parent namespace for a node.
Traverses the AST upwards from a given node in order to determine the namespace in which the node is declared.
To prevent any possible ambiguity, the returned namespace will always be prefixed with the namespace separator.
XHPASTNode | The input node. |
string|null | The namespace which contains the input node, or `null` if no such node exists. |
private function getNamespaceName()
Returns the namespace name from a node of type n_NAMESPACE.
string|null |