MethodMethods

io.shiftleft.semanticcpg.language.nodemethods.MethodMethods
final class MethodMethods(val method: Method) extends AnyVal, NodeExtension, HasLocation

Attributes

Graph
Supertypes
trait HasLocation
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def annotation: Iterator[Annotation]

Traverse to annotations of method

Traverse to annotations of method

Attributes

def body: Block

Traverse to method body (alias for block)

Traverse to method body (alias for block)

Attributes

def cfgNode: Iterator[CfgNode]
def content: Option[String]
def controlStructure: Iterator[ControlStructure]

All control structures of this method

All control structures of this method

Attributes

def definingTypeDecl: Option[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.

Attributes

def isVariadic: Boolean
def local: Iterator[Local]
override def location: NewLocation

Attributes

Definition Classes
def numberOfLines: Int
def postOrder: Iterator[CfgNode]

List of CFG nodes in post order

List of CFG nodes in post order

Attributes

def reversePostOrder: Iterator[CfgNode]

List of CFG nodes in reverse post order

List of CFG nodes in reverse post order

Attributes

def typeDecl: Option[TypeDecl]

The type declaration associated with this method, e.g., the class it is defined in. Alias for 'definingTypeDecl'

The type declaration associated with this method, e.g., the class it is defined in. Alias for 'definingTypeDecl'

Attributes

Concrete fields

val method: Method