Skip to content

Commit

Permalink
rename cpgNode and move to OverlayingNode
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliankaul committed Dec 16, 2024
1 parent 23e1ead commit ff63c17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ package de.fraunhofer.aisec.cpg.graph
* Represents an extra node added to the CPG. These nodes can live next to the CPG, typically having
* shared edges to extend the original CPG graph.
*/
abstract class OverlayNode : Node()
abstract class OverlayNode : Node() {
/** All [OverlayNode]s nodes are connected to an original cpg [Node] by this. */
abstract val underlayingNode: Node
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
package de.fraunhofer.aisec.cpg.graph.concepts

import de.fraunhofer.aisec.cpg.graph.Node
import de.fraunhofer.aisec.cpg.graph.OverlayNode

/**
Expand All @@ -34,8 +33,6 @@ import de.fraunhofer.aisec.cpg.graph.OverlayNode
* and stored in [ops].
*/
abstract class Concept() : OverlayNode() {
/** All concept nodes are connected to an original cpg [Node] by this. */
abstract val cpgNode: Node
/** All [Operation]s belonging to this concept. */
abstract val ops: Set<Operation>
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,13 @@
*/
package de.fraunhofer.aisec.cpg.graph.concepts

import de.fraunhofer.aisec.cpg.graph.Node
import de.fraunhofer.aisec.cpg.graph.OverlayNode

/**
* Represents an operation executed on/with a [Concept] (stored in [concept]). This is typically a
* `write` on a file or log object or an `execute` on a database.
*/
abstract class Operation : OverlayNode() {
/** All concept nodes are connected to an original cpg [Node] by this. */
abstract val cpgNode: Node
/** The [Concept] this operation belongs to. */
abstract val concept: Concept
}

0 comments on commit ff63c17

Please sign in to comment.