@Doc(info = "All nodes of the graph")
@Doc(info = "All arguments (actual parameters)")
Traverse to all arguments passed to methods
Traverse to all arguments passed to methods
Shorthand for cpg.argument.code(code)
Shorthand for cpg.argument.code(code)
@Doc(info = "All breaks (`ControlStructure` nodes)")
@Doc(info = "All call sites")
Traverse to all call sites
Traverse to all call sites
Shorthand for cpg.call.name(name)
Shorthand for cpg.call.name(name)
@Doc(info = "All continues (`ControlStructure` nodes)")
@Doc(info = "All control structures (source-based frontends)")
@Doc(info = "All do blocks (`ControlStructure` nodes)")
@Doc(info = "All else blocks (`ControlStructure` nodes)")
@Doc(info = "All source files")
Traverse to all source files
Traverse to all source files
Shorthand for cpg.file.name(name)
Shorthand for cpg.file.name(name)
@Doc(info = "All for blocks (`ControlStructure` nodes)")
@Doc(info = "All gotos (`ControlStructure` nodes)")
Begin traversal at node with id.
Begin traversal at node with id.
Begin traversal at set of nodes - specified by their ids
Begin traversal at set of nodes - specified by their ids
@Doc(info = "All identifier usages")
Traverse to all identifiers, e.g., occurrences of local variables or class members in method bodies.
Traverse to all identifiers, e.g., occurrences of local variables or class members in method bodies.
Shorthand for cpg.identifier.name(name)
Shorthand for cpg.identifier.name(name)
@Doc(info = "All if blocks (`ControlStructure` nodes)")
@Doc(info = "All jump targets, i.e., labels")
Traverse to all jump targets
Traverse to all jump targets
@Doc(info = "All literals, e.g., numbers or strings")
Traverse to all literals (constant strings and numbers provided directly in the code).
Traverse to all literals (constant strings and numbers provided directly in the code).
Shorthand for cpg.literal.code(code)
Shorthand for cpg.literal.code(code)
@Doc(info = "All local variables")
Traverse to all local variable declarations
Traverse to all local variable declarations
Shorthand for cpg.local.name
Shorthand for cpg.local.name
@Doc(info = "All members of complex types (e.g., classes/structures)")
Traverse to all class members
Traverse to all class members
Shorthand for cpg.member.name(name)
Shorthand for cpg.member.name(name)
@Doc(info = "All methods")
@Doc(info = "All methods with given name")
Shorthand for cpg.method.name(fullName)
Shorthand for cpg.method.name(fullName)
@Doc(info = "All method references")
Traverse to all method references
Traverse to all method references
Shorthand for cpg.methodRef.filter(_.referencedMethod.name(name))
Shorthand for cpg.methodRef.filter(_.referencedMethod.name(name))
@Doc(info = "All formal return parameters")
Traverse to all formal return parameters
Traverse to all formal return parameters
@Doc(info = "All namespaces")
Traverse to all namespaces, e.g., packages in Java.
Traverse to all namespaces, e.g., packages in Java.
Shorthand for cpg.namespace.name(name)
Shorthand for cpg.namespace.name(name)
Traverse to all namespace blocks, e.g., packages in Java.
Traverse to all namespace blocks, e.g., packages in Java.
Shorthand for cpg.namespaceBlock.name(name)
Shorthand for cpg.namespaceBlock.name(name)
@Doc(info = "All parameters")
Traverse to all input parameters
Traverse to all input parameters
Shorthand for cpg.parameter.name(name)
Shorthand for cpg.parameter.name(name)
@Doc(info = "All actual return parameters")
Traverse to all return expressions
Traverse to all return expressions
Shorthand for returns.code(code)
Shorthand for returns.code(code)
@Doc(info = "All switch blocks (`ControlStructure` nodes)")
@Doc(info = "All tags with given name")
@Doc(info = "All throws (`ControlStructure` nodes)")
@Doc(info = "All try blocks (`ControlStructure` nodes)")
@Doc(info = "All used types")
Traverse to all types, e.g., Set
Traverse to all types, e.g., Set
@Doc(info = "All used types with given name")
Shorthand for cpg.typ.name(name)
Shorthand for cpg.typ.name(name)
@Doc(info = "All declarations of types")
Traverse to all declarations, e.g., Set
Traverse to all declarations, e.g., Set
Shorthand for cpg.typeDecl.name(name)
Shorthand for cpg.typeDecl.name(name)
@Doc(info = "All type references")
Traverse to all type references
Traverse to all type references
@Doc(info = "All while blocks (`ControlStructure` nodes)")