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

scala.tools.nsc.AmmClassPath.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0-M0-71-1e75159e
Show newest version
package scala.tools.nsc

import java.io.File
import java.net.URL

import ammonite.interp.internal.CustomURLZipArchive

import scala.reflect.io.AbstractFile
import scala.tools.nsc.classpath.FileUtils.AbstractFileOps
import scala.tools.nsc.classpath.{ClassPathEntries, _}
import scala.tools.nsc.util.{ClassPath, ClassRepresentation}


trait AmmClassPath extends ClassPath{
  def zipUrl: URL
  def ammPackages(inPackage: String): Seq[PackageEntry]
  def packages(inPackage: String): Seq[PackageEntry] = {
    ammPackages(inPackage)
  }

  def ammList(inPackage: String): ClassPathEntries
  def list(inPackage: String): ClassPathEntries = {
    ammList(inPackage)
  }


  def ammClasses(inPackage: String): Seq[ClassFileEntry]
  def classes(inPackage: String): Seq[ClassFileEntry] = {
    ammClasses(inPackage)
  }

  def ammHasPackage(pkg: String): Boolean
  def hasPackage(pkg: String) = ammHasPackage(pkg)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy