A node representing an element that can be the parent of up to one LocalVariableDeclExpr
for which we
want to use a synthetic node to variable declaration and its type access.
Excludes LocalVariableDeclStmt
and ForStmt
, as they can hold multiple declarations.
For these cases, either a synthetic node is not necessary or a different synthetic node is used.
Import path
import semmle.code.java.PrintAst
Direct supertypes
Indirect supertypes
Fields
Inherited fields
element | from ElementNode |
Predicates
getChild | Gets the child node at index |
Inherited predicates
getAChild | Gets a child of this node. | from PrintAstNode |
getChildEdgeLabel | Gets the label for the edge from this node to the specified child. By default, this is just the index of the child, but subclasses can override this. | from PrintAstNode |
getElement | Gets the | from ElementNode |
getLocation | Gets the location of this node in the source code. | from ElementNode |
getParent | Gets the parent of this node, if any. | from PrintAstNode |
getProperty | Gets the value of the property of this node, where the name of the property is | from PrintAstNode |
hasLocationInfo | Holds if this node is at the specified location. The location spans column | from PrintAstNode |
toString | Gets a textual representation of this node in the PrintAst output tree. | from ElementNode |