All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.autonomousapps.visitor.GraphViewReader.kt Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.autonomousapps.visitor

import com.autonomousapps.model.Dependency
import com.autonomousapps.model.DependencyGraphView
import com.autonomousapps.model.ProjectVariant
import com.autonomousapps.model.declaration.Declaration

internal class GraphViewReader(
  private val project: ProjectVariant,
  private val dependencies: Set,
  private val graph: DependencyGraphView,
  private val declarations: Set
) {

  fun accept(visitor: GraphViewVisitor) {
    val context = DefaultContext(project, dependencies, graph, declarations)
    dependencies.forEach { dependency ->
      visitor.visit(dependency, context)
    }
  }
}

internal class DefaultContext(
  override val project: ProjectVariant,
  override val dependencies: Set,
  override val graph: DependencyGraphView,
  override val declarations: Set
) : GraphViewVisitor.Context




© 2015 - 2024 Weber Informatics LLC | Privacy Policy