DummyNode

class DummyNode : Node(source)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var annotations: MutableList<Annotation>
Link copied to clipboard
Link copied to clipboard
var astChildren: List<Node>
Link copied to clipboard
var code: String?
Link copied to clipboard
Link copied to clipboard
open override var ctx: TranslationContext?
Link copied to clipboard
var file: String?
Link copied to clipboard
var id: Long?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var language: Language<*>?
Link copied to clipboard
var location: PhysicalLocation?
Link copied to clipboard
open var name: Name
Link copied to clipboard
var nextCDG: List<Node>
Link copied to clipboard
var nextCDGEdges: MutableList<PropertyEdge<Node>>
Link copied to clipboard
var nextDFG: MutableSet<Node>
Link copied to clipboard
var nextDFGEdges: MutableList<Dataflow>
Link copied to clipboard
var nextEOG: List<Node>
Link copied to clipboard
var nextEOGEdges: MutableList<PropertyEdge<Node>>
Link copied to clipboard
val nextFullDFG: List<Node>
Link copied to clipboard
var nextPDG: MutableSet<Node>
Link copied to clipboard
var nextPDGEdges: MutableSet<PropertyEdge<Node>>
Link copied to clipboard
var prevCDG: List<Node>
Link copied to clipboard
var prevCDGEdges: MutableList<PropertyEdge<Node>>
Link copied to clipboard
var prevDFG: MutableSet<Node>
Link copied to clipboard
var prevDFGEdges: MutableList<Dataflow>
Link copied to clipboard
var prevEOG: List<Node>
Link copied to clipboard
var prevEOGEdges: MutableList<PropertyEdge<Node>>
Link copied to clipboard
val prevFullDFG: List<Node>
Link copied to clipboard
var prevPDG: MutableSet<Node>
Link copied to clipboard
var prevPDGEdges: MutableSet<PropertyEdge<Node>>
Link copied to clipboard
val Node.sarifRegion: Region

Returns a Region object from a Node's startLine, endLine, startColumn, endColumn property. If these properties do not exist, returns an empty Region.

Link copied to clipboard
open override var scope: Scope?

Functions

Link copied to clipboard
open fun accept(strategy: IStrategy<Node>, visitor: IVisitor<Node>)
Link copied to clipboard
fun addAllPrevDFG(prev: Collection<Node>, granularity: Granularity, callingContext: CallingContext?)
Link copied to clipboard
fun addAllPrevPDG(prev: Collection<Node>, dependenceType: DependenceType)
Link copied to clipboard
fun addAllPrevPDGEdges(prev: Collection<PropertyEdge<Node>>, dependenceType: DependenceType)
Link copied to clipboard
fun addAnnotations(annotations: Collection<Annotation>)
Link copied to clipboard
fun addNextDFG(next: Node, granularity: Granularity, callingContext: CallingContext?)
Link copied to clipboard
fun addNextEOG(propertyEdge: PropertyEdge<Node>)
Link copied to clipboard
fun addPrevCDG(prev: Node, properties: MutableMap<Properties, Any?>)
Link copied to clipboard
open fun addPrevDFG(prev: Node, granularity: Granularity, callingContext: CallingContext?)
Link copied to clipboard
fun addPrevEOG(propertyEdge: PropertyEdge<Node>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun Node.findUsages(depth: Int = 5): Collection<Node>

To generate more interesting Findings we want to find key points where the forbidden operation influences other code. For this we traverse the DFG for a fixed amount of steps and search for all usages of declared values.

Link copied to clipboard
fun Node.getSarifLocation(artifacts: Map<Path, Artifact>?): Location

Returns a Location object from a Node using the given artifacts as well as its sarifRegion.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun removeNextDFG(next: Node?)
Link copied to clipboard
fun removePrevDFG(prev: Node?)
Link copied to clipboard
fun removePrevEOGEntry(eog: Node)
Link copied to clipboard

Returns the CpgBackendDataItem of the given Node

Link copied to clipboard
open override fun toString(): String