PackageData

tastyquery.Classpaths.InMemory.PackageData
final class PackageData(debugString: String, val dotSeparatedName: String, val classes: List[ClassData]) extends PackageData

A thread-safe, immutable package information within a classpath entry.

Attributes

Graph
Supertypes
trait PackageData
class Object
trait Matchable
class Any

Members list

Value members

Concrete 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

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val classes: List[ClassData]
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