ClassData

tastyquery.Classpaths.InMemory.ClassData
final class ClassData(debugString: String, val binaryName: String, val tastyFileBytes: Option[IArray[Byte]], val classFileBytes: Option[IArray[Byte]]) extends ClassData

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

Attributes

Graph
Supertypes
trait ClassData
class Object
trait Matchable
class Any

Members list

Value members

Concrete 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

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 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

val classFileBytes: Option[IArray[Byte]]
val tastyFileBytes: Option[IArray[Byte]]