io.joern.console

Type members

Classlikes

case class CodeExamples(positive: List[String], negative: List[String])

Joern and Ocular require different implicits to be present, and when we encounter these implicits as parameters in a query that we invoke via reflection, we need to obtain these implicits from somewhere.

Joern and Ocular require different implicits to be present, and when we encounter these implicits as parameters in a query that we invoke via reflection, we need to obtain these implicits from somewhere.

We achieve this by implementing a DefaultArgumentProvider for Ocular, and one for Joern.

case class Query(name: String, author: String, title: String, description: String, score: Double, traversal: Cpg => Traversal[_ <: StoredNode], traversalAsString: String, tags: List[String], language: String, codeExamples: CodeExamples)
Companion:
object
object Query
Companion:
class
class QueryDatabase(defaultArgumentProvider: DefaultArgumentProvider, namespace: String)
case class TraversalWithStrRep(traversal: Cpg => Traversal[_ <: StoredNode], strRep: String)