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 |