Internal_Static Readonly Internal_String with a dump of the AST representation starting from this node. This representation corresponds to the internal Java representation of the ClavaAst, where the node names correspond to Java classes. To get an equivalent representation with join point names, use the attribute 'dump'
Returns an array with the children of the node, considering null nodes
String that uniquely identifies this node
The name of the Java class of this node, which is similar to the equivalent node in Clang AST
Returns the number of children of the node, considering null nodes
The attributes (e.g. Pure, CUDAGlobal) associated to this decl
The bit width of the type returned by this join point, in relation to the definitions of its Translation Unit, or undefined if there is no type or bitwidth defined, or if the join point is not in a TranslationUnit
String list of the names of the join points that form a path from the root to this node
Returns an array with the children of the node, ignoring null nodes
String with the code represented by this node
The starting column of the current node in the original code
Returns the node that declares the scope of this node
JS object associated with this node, containing parsed data of #pragma clava data when the node can be a target of pragmas. This is a special object, managed internally, and cannot be reassigned, to change its contents requires using key-value pairs. If the node can be the target of a pragma, the information stored in this object is persisted between rebuilds.
JS object associated with this node, containing parsed data of #pragma clava data when the node can be a target of pragmas. This is a special object, managed internally, and cannot be reassigned, to change its contents requires using key-value pairs. If the node can be the target of a pragma, the information stored in this object is persisted between rebuilds.
The depth of this join point in the AST. If it is the root join point returns 0, if it is a child of the root node returns 1, etc.
Retrieves all descendants of the join point
The ending column of the current node in the original code
The ending line of the current node in the original code
The name of the file where the code of this node is located, if available
The complete path to the file where the code of this node comes from
True if the node has children, false otherwise
True if this node has a parent
True, if the join point has a type
Returns comments that are not explicitly in the AST, but embedded in other nodes
Returns comments that are not explicitly in the AST, but embedded in other nodes
True if this is an angled include (i.e., system include)
True if this is a Cilk node (i.e., cilk_spawn, cilk_sync or cilk_for)
True, if the join point is inside a header (e.g., if condition, for, while)
True, if the join point is inside a loop header (e.g., for, while)
True, if the join point is part of a system header file
True if any descendant or the node itself was defined as a macro
Id that is based on the position of the node in the code, and should remain stable between compilations (warning: only a few nodes - file, function, loop - currently support it)
A list of the properties currently supported by this node. Can be used as parameter of the attribute 'getValue'
Returns the node that came before this node, or undefined if there is none
The starting line of the current node in the original code
A string with information about the file and code position of this node, if available
The name of the include
Returns the number of children of the node, ignoring null nodes
If this join point was not originally from the parsed AST, returns the first join point of the original AST that contributed to its origin
Returns the parent node in the AST, or undefined if it is the root node
Returns the node that declares the scope that is a parent of the scope of this node
The pragmas associated with this node
The path to the folder of the source file of the include, relative to the name of the include
Returns the node that comes after this node, or undefined if there is none
Returns the 'program' joinpoint
The nodes of the scope of the current join point. If this node has a body (e.g., loop, function) corresponds to the children of the body. Otherwise, returns an empty array
Returns an array with the siblings that came before this node
Returns an array with the siblings that come after this node
Converts this join point to a statement, or returns undefined if it was not possible
True, if this node is a Java instance of the given name, which corresponds to a simple Java class name of an AST node. For an equivalent function for join point names, use 'instanceOf(joinPointName)'
Performs a copy of the node and its children, but not of the nodes in its fields
Clears all properties from the .data object
Performs a copy of the node and its children, including the nodes in their fields (only the first level of field nodes, this function is not recursive)
Removes the node associated to this joinpoint from the AST
Looks for an ancestor joinpoint name, walking back on the AST
Returns the child of the node at the given index, considering null nodes
Looks for an ancestor joinpoint name, walking back on the joinpoint chain
Returns the child of the node at the given index, ignoring null nodes
Retrieves the descendants of the given type, including the node itself
Looks in the descendants for the first node of the given type
String with the full Java class name of the type of the Java field with the provided name
Java Class instance with the type of the given key
Retrives values that have been associated to nodes of the AST with 'setUserField'
The value associated with the given property key
True, if the given join point or AST node is the same (== test) as the current join point AST node
List with the values of fields that are join points, recursively
Adds a message that will be printed to the user after weaving finishes. Identical messages are removed
Removes the children of this node
Setting data directly is not supported, this action just emits a warning and does nothing
Sets the commented that are embedded in a node
Sets the commented that are embedded in a node
Associates arbitrary values to nodes of the AST
Overload which accepts a map
Sets the value associated with the given property key
Replaces this join point with a comment with the same contents as .code
Represents an include directive (e.g., #include <stdio.h>)