Class AstNode::AstNode

A node in the abstract syntax tree, any program element.

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getASuccessor

Get any possible successor in the progam’s control flow.

getEnclosingText

Get the unit containing this element.

getEnclosingUnit

Get the unit containing this element.

hasAncestor

Does this AstNode have ‘other’ as a ancestor?

hasDescendant

Does this AstNode have ‘other’ as a descendant?

toString

Inherited predicates

getLocation

Get this element’s location.

from Locatable
getNumLines

Get the number of lines covered by this element.

from Locatable
getParentfrom AstNode_