class Cpg extends NodeTypeStarters
Traversal starting point
This is the starting point of all traversals. A variable of this
type named cpg is made available in the REPL.
- Alphabetic
- By Inheritance
- Cpg
- NodeTypeStarters
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Cpg(graph: Graph)
- graph
the underlying graph
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
all: CpgSteps[StoredNode, HNil]
Traverse to all nodes.
Traverse to all nodes.
- Definition Classes
- NodeTypeStarters
-
def
argument: Expression[HNil]
Traverse to all arguments passed to methods
Traverse to all arguments passed to methods
- Definition Classes
- NodeTypeStarters
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
call: Call[HNil]
Traverse to all call sites
Traverse to all call sites
- Definition Classes
- NodeTypeStarters
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
file: File[HNil]
Traverse to all source files
Traverse to all source files
- Definition Classes
- NodeTypeStarters
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val graph: Graph
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
identifier: Identifier[HNil]
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.
- Definition Classes
- NodeTypeStarters
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
literal: Literal[HNil]
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).
- Definition Classes
- NodeTypeStarters
-
def
local: Local[HNil]
Traverse to all local variable declarations
Traverse to all local variable declarations
- Definition Classes
- NodeTypeStarters
-
def
member: Member[HNil]
Traverse to all class members
Traverse to all class members
- Definition Classes
- NodeTypeStarters
-
def
method: Method[HNil]
Traverse to all methods
Traverse to all methods
- Definition Classes
- NodeTypeStarters
-
def
methodInst: MethodInst[HNil]
Traverse to all method instances
Traverse to all method instances
- Definition Classes
- NodeTypeStarters
-
def
methodReturn: MethodReturn[HNil]
Traverse to all formal return parameters
Traverse to all formal return parameters
- Definition Classes
- NodeTypeStarters
-
def
namespace: Namespace[HNil]
Traverse to all namespaces, e.g., packages in Java.
Traverse to all namespaces, e.g., packages in Java.
- Definition Classes
- NodeTypeStarters
-
def
namespaceBlock: NamespaceBlock[HNil]
Traverse to all namespace blocks, e.g., packages in Java.
Traverse to all namespace blocks, e.g., packages in Java.
- Definition Classes
- NodeTypeStarters
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
param: MethodParameter[HNil]
Traverse to all input parameters
Traverse to all input parameters
- Definition Classes
- NodeTypeStarters
-
implicit
lazy val
scalaGraph: ScalaGraph
The underlying graph.
The underlying graph.
This member provides raw access to the underlying graph.
- Definition Classes
- Cpg → NodeTypeStarters
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
typeDecl: TypeDecl[HNil]
Traverse to all declarations, e.g., Set<T>
Traverse to all declarations, e.g., Set<T>
- Definition Classes
- NodeTypeStarters
-
def
types: Type[HNil]
Traverse to all types, e.g., Set<String>
Traverse to all types, e.g., Set<String>
- Definition Classes
- NodeTypeStarters
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )