final class MethodTraversal extends AnyVal
A method, function, or procedure
- Annotations
- @Traversal()
- Alphabetic
- By Inheritance
- MethodTraversal
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MethodTraversal(iterableOnce: IterableOnce[Method])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def annotation: Traversal[Annotation]
Traverse to annotations of method
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def body: Traversal[Block]
Traverse to method body (alias for
block)Traverse to method body (alias for
block)- Annotations
- @Doc()
- def break: Traversal[ControlStructure]
- Annotations
- @Doc()
- def cfgLast: Traversal[CfgNode]
Traverse to last expression in CFG.
Traverse to last expression in CFG.
- Annotations
- @Doc()
- def cfgNode: Traversal[CfgNode]
- Annotations
- @Doc()
- def continue: Traversal[ControlStructure]
- Annotations
- @Doc()
- def controlStructure(regex: String): Traversal[ControlStructure]
Shorthand to traverse to control structures where condition matches
regex - def controlStructure: Traversal[ControlStructure]
All control structures of this method
All control structures of this method
- Annotations
- @Doc()
- def definingMethod: Traversal[Method]
The method in which this method is defined
The method in which this method is defined
- Annotations
- @Doc()
- def definingTypeDecl: Traversal[TypeDecl]
The type declaration associated with this method, e.g., the class it is defined in.
The type declaration associated with this method, e.g., the class it is defined in.
- Annotations
- @Doc()
- def doBlock: Traversal[ControlStructure]
- Annotations
- @Doc()
- def elseBlock: Traversal[ControlStructure]
- Annotations
- @Doc()
- def external: Traversal[Method]
Traverse to external methods, that is, methods not present but only referenced in the CPG.
Traverse to external methods, that is, methods not present but only referenced in the CPG.
- Annotations
- @Doc()
- def forBlock: Traversal[ControlStructure]
- Annotations
- @Doc()
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def goto: Traversal[ControlStructure]
- Annotations
- @Doc()
- def ifBlock: Traversal[ControlStructure]
- Annotations
- @Doc()
- def internal: Traversal[Method]
Traverse to internal methods, that is, methods for which code is included in this CPG.
Traverse to internal methods, that is, methods for which code is included in this CPG.
- Annotations
- @Doc()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNotStub: Traversal[Method]
Traverse only to methods that are not stubs.
- def isStub: Traversal[Method]
Traverse only to methods that are stubs, e.g., their code is not available or the method body is empty.
- def isVariadic: Traversal[Method]
Traverse only to methods that accept variadic arguments.
- val iterableOnce: IterableOnce[Method]
- def local: Traversal[Local]
Traverse to the methods local variables
Traverse to the methods local variables
- Annotations
- @Doc()
- def namespace: Traversal[Namespace]
Traverse to namespace
Traverse to namespace
- Annotations
- @Doc()
- def numberOfLines: Traversal[Int]
- def switchBlock: Traversal[ControlStructure]
- Annotations
- @Doc()
- def throws: Traversal[ControlStructure]
- Annotations
- @Doc()
- def toString(): String
- Definition Classes
- Any
- def topLevelExpressions: Traversal[Expression]
- Annotations
- @Doc()
- def tryBlock: Traversal[ControlStructure]
- Annotations
- @Doc()
- def typeDecl: Traversal[TypeDecl]
The type declaration associated with this method, e.g., the class it is defined in.
The type declaration associated with this method, e.g., the class it is defined in. Alias for 'definingTypeDecl'
- Annotations
- @Doc()
- def whileBlock: Traversal[ControlStructure]
- Annotations
- @Doc()