Steps

io.shiftleft.semanticcpg.language.Steps
See theSteps companion object
final class Steps[A](val traversal: Traversal[A]) extends AnyVal

Base class for our DSL These are the base steps available in all steps of the query language. There are no constraints on the element types, unlike e.g. NodeSteps

Attributes

Companion:
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def b: Buffer[A]

Shorthand for toBuffer

Shorthand for toBuffer

Attributes

def exec(): List[A]

Alias for toList

Alias for toList

Attributes

def jl: List[A]

Execute the traversal and convert it into a Java list (as opposed to the Scala list obtained via toList)

Execute the traversal and convert it into a Java list (as opposed to the Scala list obtained via toList)

Attributes

def p(implicit show: Show[A]): List[String]

Execute this traversal and pretty print the results. This may mean that not all properties of the node are displayed or that some properties have undergone transformations to improve display. A good example is flow pretty-printing. This is the only three of the methods which we may modify on a per-node-type basis, typically via implicits of type Show[NodeType].

Execute this traversal and pretty print the results. This may mean that not all properties of the node are displayed or that some properties have undergone transformations to improve display. A good example is flow pretty-printing. This is the only three of the methods which we may modify on a per-node-type basis, typically via implicits of type Show[NodeType].

Attributes

def s: LazyList[A]

Alias for toStream

Alias for toStream

Attributes

def toBuffer(): Buffer[A]

Execute the traversal and convert it to a mutable buffer

Execute the traversal and convert it to a mutable buffer

Attributes

def toJson: String

Execute traversal and convert the result to json. toJson (export) contains the exact same information as toList, only in json format. Typically, the user will call this method upon inspection of the results of toList in order to export the data for processing with other tools.

Execute traversal and convert the result to json. toJson (export) contains the exact same information as toList, only in json format. Typically, the user will call this method upon inspection of the results of toList in order to export the data for processing with other tools.

Attributes

def toJsonPretty: String

Execute traversal and convert the result to pretty json.

Execute traversal and convert the result to pretty json.

Attributes

def toStream(): LazyList[A]

Execute the travel and convert it to a Java stream.

Execute the travel and convert it to a Java stream.

Attributes

Concrete fields

val traversal: Traversal[A]