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

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)

Value parameters

fullClassName

full class name with package

Attributes

Returns

(package, simple class name)