PackageNameUtils

dotty.tools.dotc.classpath.PackageNameUtils$

Common methods related to package names represented as String

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def packageContains(inPackage: String, packageDottedName: String): Boolean

true if packageDottedName is a package directly nested in inPackage, for example:

true if packageDottedName is a package directly nested in inPackage, for example:

  • packageContains("scala", "scala.collection")
  • packageContains("", "scala")

Attributes

def packagePrefix(inPackage: String): String
inline def separatePkgAndClassNames(fullClassName: String): (String, String)

Attributes

fullClassName

full class name with package

Returns:

(package, simple class name)