ClassData

tastyquery.Classpaths.ClassData
trait ClassData

Information about one class within a PackageData.

When both a .class file and a .tasty file exist for a given binary name, they are represented by the same instance of ClassData.

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

Attributes

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

Members list

Value members

Abstract methods

def hasClassFile: Boolean

Tests whether this class information has an associated .class file.

Tests whether this class information has an associated .class file.

Attributes

def hasTastyFile: Boolean

Tests whether this class information has an associated .tasty file.

Tests whether this class information has an associated .tasty file.

Attributes

def readClassFileBytes(): IArray[Byte]

Reads the contents of the .class file associated with this class information.

Reads the contents of the .class file associated with this class information.

Attributes

def readTastyFileBytes(): IArray[Byte]

Reads the contents of the .tasty file associated with this class information.

Reads the contents of the .tasty file associated with this class information.

Attributes

Abstract fields

val binaryName: String

The binary name of the class information represented by this ClassData.

The binary name of the class information represented by this ClassData.

It is the name of the file(s) without the .class or .tasty extension.

Attributes