class NodeTypeStarters extends AnyRef
- Annotations
- @TraversalSource()
- Alphabetic
- By Inheritance
- NodeTypeStarters
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new NodeTypeStarters(cpg: Cpg)
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: Traversal[StoredNode]
Traverse to all nodes.
Traverse to all nodes.
- Annotations
- @Doc("All nodes of the graph", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def argument(code: String): Traversal[Expression]
Shorthand for
cpg.argument.code(code) - def argument: Traversal[Expression]
Traverse to all arguments passed to methods
Traverse to all arguments passed to methods
- Annotations
- @Doc("All arguments (actual parameters)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def break: Traversal[ControlStructure]
- Annotations
- @Doc("All breaks (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def call(name: String): Traversal[Call]
Shorthand for
cpg.call.name(name) - def call: Traversal[Call]
Traverse to all call sites
Traverse to all call sites
- Annotations
- @Doc("All call sites", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def comment(code: String): Traversal[Comment]
Shorthand for
cpg.comment.code(code) - def comment: Traversal[Comment]
Traverse to all comments in source-based CPGs.
Traverse to all comments in source-based CPGs.
- Annotations
- @Doc("All comments in source-based CPGs", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def continue: Traversal[ControlStructure]
- Annotations
- @Doc("All continues (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def controlStructure: Traversal[ControlStructure]
- Annotations
- @Doc("All control structures (source-based frontends)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def doBlock: Traversal[ControlStructure]
- Annotations
- @Doc("All do blocks (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def elseBlock: Traversal[ControlStructure]
- Annotations
- @Doc("All else blocks (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def file(name: String): Traversal[File]
Shorthand for
cpg.file.name(name) - def file: Traversal[File]
Traverse to all source files
Traverse to all source files
- Annotations
- @Doc("All source files", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def forBlock: Traversal[ControlStructure]
- Annotations
- @Doc("All for blocks (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def goto: Traversal[ControlStructure]
- Annotations
- @Doc("All gotos (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def id[NodeType <: StoredNode](ids: Seq[Long]): Traversal[NodeType]
Begin traversal at set of nodes - specified by their ids
- def id[NodeType <: StoredNode](anId: Long): Traversal[NodeType]
Begin traversal at node with id.
- def identifier(name: String): Traversal[Identifier]
Shorthand for
cpg.identifier.name(name) - def identifier: Traversal[Identifier]
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.
- Annotations
- @Doc("All identifier usages", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def ifBlock: Traversal[ControlStructure]
- Annotations
- @Doc("All if blocks (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jumpTarget: Traversal[JumpTarget]
Traverse to all jump targets
Traverse to all jump targets
- Annotations
- @Doc("All jump targets, i.e., labels", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def literal(code: String): Traversal[Literal]
Shorthand for
cpg.literal.code(code) - def literal: Traversal[Literal]
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).
- Annotations
- @Doc("All literals, e.g., numbers or strings", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def local(name: String): Traversal[Local]
Shorthand for
cpg.local.name - def local: Traversal[Local]
Traverse to all local variable declarations
Traverse to all local variable declarations
- Annotations
- @Doc("All local variables", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def member(name: String): Traversal[Member]
Shorthand for
cpg.member.name(name) - def member: Traversal[Member]
Traverse to all class members
Traverse to all class members
- Annotations
- @Doc("All members of complex types (e.g., classes/structures)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def metaData: Traversal[MetaData]
Traverse to all meta data entries
Traverse to all meta data entries
- Annotations
- @Doc("Meta data blocks for graph", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def method(fullName: String): Traversal[Method]
Shorthand for
cpg.method.fullName(fullName) - def method: Traversal[Method]
Traverse to all methods
Traverse to all methods
- Annotations
- @Doc("All methods", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def methodRef(fullName: String): Traversal[MethodRef]
Shorthand for
cpg.methodRef .filter(_.referencedMethod.fullName(fullName)) - def methodRef: Traversal[MethodRef]
Traverse to all method references
Traverse to all method references
- Annotations
- @Doc("All method references", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def methodReturn: Traversal[MethodReturn]
Traverse to all formal return parameters
Traverse to all formal return parameters
- Annotations
- @Doc("All formal return parameters", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def namespace(name: String): Traversal[Namespace]
Shorthand for
cpg.namespace.name(name) - def namespace: Traversal[Namespace]
Traverse to all namespaces, e.g., packages in Java.
Traverse to all namespaces, e.g., packages in Java.
- Annotations
- @Doc("All namespaces", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def namespaceBlock(name: String): Traversal[NamespaceBlock]
Shorthand for
cpg.namespaceBlock.name(name) - def namespaceBlock: Traversal[NamespaceBlock]
Traverse to all namespace blocks, e.g., packages in Java.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parameter(name: String): Traversal[MethodParameterIn]
Shorthand for
cpg.parameter.name(name) - def parameter: Traversal[MethodParameterIn]
Traverse to all input parameters
Traverse to all input parameters
- Annotations
- @Doc("All parameters", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def ret(code: String): Traversal[Return]
Shorthand for
returns.code(code) - def ret: Traversal[Return]
Traverse to all return expressions
Traverse to all return expressions
- Annotations
- @Doc("All actual return parameters", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def switchBlock: Traversal[ControlStructure]
- Annotations
- @Doc("All switch blocks (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tag(name: String): Traversal[Tag]
- Annotations
- @Doc("All tags with given name", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def tag: Traversal[Tag]
Traverse to all tags
Traverse to all tags
- Annotations
- @Doc("All tags", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryBlock: Traversal[ControlStructure]
- Annotations
- @Doc("All try blocks (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def typ(fullName: String): Traversal[Type]
Shorthand for
cpg.types.fullName(fullName) - def typ: Traversal[Type]
Traverse to all types, e.g., Set<String>
Traverse to all types, e.g., Set<String>
- Annotations
- @Doc("All used types", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def typeDecl(fullName: String): Traversal[TypeDecl]
Shorthand for cpg.typeDecl.fullName(fullName)
- def typeDecl: Traversal[TypeDecl]
Traverse to all declarations, e.g., Set<T>
Traverse to all declarations, e.g., Set<T>
- Annotations
- @Doc("All declarations of types", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- def typeRef: Traversal[TypeRef]
Traverse to all type references
Traverse to all type references
- Annotations
- @Doc("All type references", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def whileBlock: Traversal[ControlStructure]
- Annotations
- @Doc("All while blocks (`ControlStructure` nodes)", help.this.Doc.<init>$default$2, help.this.Doc.<init>$default$3)
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def returns(code: String): Traversal[Return]
Shorthand for
returns.code(code)Shorthand for
returns.code(code)- Annotations
- @deprecated
- Deprecated
Use ret
- def returns: Traversal[Return]
Traverse to all return expressions
Traverse to all return expressions
- Annotations
- @deprecated
- Deprecated
Use ret
- def types(fullName: String): Traversal[Type]
Shorthand for
cpg.types.fullName(fullName)Shorthand for
cpg.types.fullName(fullName)- Annotations
- @deprecated
- Deprecated
Use typ
- def types: Traversal[Type]
Traverse to all types, e.g., Set<String>
Traverse to all types, e.g., Set<String>
- Annotations
- @deprecated
- Deprecated
Use typ