PackageData

tastyquery.Classpaths.PackageData
trait PackageData

Information about one package within a ClasspathEntry.

Implementations of this class are encouraged to define a toString() method that helps identifying the package and its enclosing classpath entry for debugging purposes.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class PackageData

Members list

Value members

Abstract methods

def getClassDataByBinaryName(binaryName: String): Option[ClassData]

Get the ClassData associated with the given binaryName in this package, if it exists.

Get the ClassData associated with the given binaryName in this package, if it exists.

Returns None if neither binaryName.class nor binaryName.tasty exists.

Subsequent calls to getClassDataByBinaryName and listAllClassDatas may return the same instance of ClassData, but need not do so.

Attributes

Lists all the files containing class information in this package (but not nested packages).

Lists all the files containing class information in this package (but not nested packages).

Class information is found in .class files and .tasty files. For any binary name X, if there is both an X.class and an X.tasty, they must be returned as part of the same ClassData.

This method must not return two items with the same ClassData.binaryName.

Subsequent calls to listAllClassDatas and getClassDataByBinaryName may return the same instances of ClassData, but need not do so.

Attributes

Abstract fields

val dotSeparatedName: String

The fully-qualified name of the package represented by this PackageData.

The fully-qualified name of the package represented by this PackageData.

Attributes