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
Function join points can either represent declarations or definitions, returns the definition of this function, if present, or the first declaration, if only declarations are present
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.
Returns the first prototype of this function that could be found, or undefined if there is none
Returns the prototypes of this function that are present in the code. If there are none, returns an empty array
Returns the implementation of this function if there is one, or undefined otherwise
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
The type of the call, which includes the return type and the types of the parameters
The type of the call, which includes the return type and the types of the parameters
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 the function returned by the 'canonical' attribute
True if this is a Cilk node (i.e., cilk_spawn, cilk_sync or cilk_for)
True if this particular function join point is an implementation (i.e. has a body), false otherwise
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
True if this particular function join point is a prototype (i.e. does not have a body), false otherwise
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
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
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
A string with the signature of this function (e.g., name of the function, plus the parameters types)
Converts this join point to a statement, or returns undefined if it was not possible
The storage class of this function (i.e., one of NONE, EXTERN, PRIVATE_EXTERN or STATIC)
The storage class of this function (i.e., one of NONE, EXTERN, PRIVATE_EXTERN or STATIC)
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)'
Clones this function assigning it a new name, inserts the cloned function after the original function. If the name is the same and the original method, automatically removes the cloned method from the class
Generates a clone of the provided function on a new file with the provided name (or with a weaver-generated name if one is not provided).
OptionalfileName: stringGenerates a clone of the provided function on a new file (with the provided join point).
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
Inserts code as a literal statement before the return points of the function (return statements and implicitly, at the end of the function). Returns the last inserted 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
Removes the of the method
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
Sets the name of this namedDecl
Overload that accepts strings that represent type-varname pairs (e.g., int param1)
Sets the qualified name of this namedDecl (changes both the name and qualified prefix)
Sets the qualified prefix of this namedDecl
Sets the storage class of this specific function decl. AUTO and REGISTER are not allowed for functions, and EXTERN is not allowed in function implementations, or function declarations that are in the same file as the implementation. Returns true if the storage class changed, false otherwise.
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 a C++ class method declaration or definition