org.senkbeil.debugger.classes

ClassManager

Related Docs: object ClassManager | package classes

class ClassManager extends JDIHelperMethods with LogLike

Represents a manager of classes available on the virtual machine and their associated files.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClassManager
  2. JDIHelperMethods
  3. LogLike
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClassManager(_virtualMachine: VirtualMachine, loadClasses: Boolean = true)

    _virtualMachine

    The virtual machine whose classes to manage

    loadClasses

    Whether or not to load all classes from the virtual machine on initialization of this manager

Type Members

  1. implicit class LoggerExtras extends AnyRef

    Definition Classes
    LogLike

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val _virtualMachine: VirtualMachine

    The virtual machine whose classes to manage

    The virtual machine whose classes to manage

    Attributes
    protected
    Definition Classes
    ClassManagerJDIHelperMethods
  5. def allClasses: Seq[ReferenceType]

    Retrieves a list of all available (cached) classes.

    Retrieves a list of all available (cached) classes.

    returns

    The collection of reference types

  6. def allFileNames: Seq[String]

    Retrieves a list of all available (cached) file names.

    Retrieves a list of all available (cached) file names.

    returns

    The collection of file names

  7. def allFileNamesWithExtension(extension: String): Seq[String]

    Retrieves a list of available (cached) file names with the provided extension.

    Retrieves a list of available (cached) file names with the provided extension.

    extension

    The extension of the file names (Scala/Java/etc)

    returns

    The collection of file names

  8. def allJavaFileNames: Seq[String]

    Retrieves a list of available (cached) Java file names.

    Retrieves a list of available (cached) Java file names.

    returns

    The collection of file names

  9. def allScalaFileNames: Seq[String]

    Retrieves a list of available (cached) Scala file names.

    Retrieves a list of available (cached) Scala file names.

    returns

    The collection of file names

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def fileNameForReferenceType(referenceType: ReferenceType): String

    Retrieves the file name for the associated reference type.

    Retrieves the file name for the associated reference type.

    referenceType

    The reference type whose file name to retrieve

    returns

    The file name if it exists, otherwise ARRAY if the reference type is an array or UNKNOWN if it is not

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def findMainThread(virtualMachine: VirtualMachine): Option[ThreadReference]

    Determines the main executing thread of the specified virtual machine.

    Determines the main executing thread of the specified virtual machine.

    virtualMachine

    The virtual machine whose main thread to determine

    returns

    Some reference to the main thread if it can be determined, otherwise None

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  17. def findMainThread(): Option[ThreadReference]

    Determines the main executing thread of the _virtualMachine instance.

    Determines the main executing thread of the _virtualMachine instance.

    returns

    Some reference to the main thread if it can be determined, otherwise None

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def linesAndLocationsForFile(fileName: String): Option[Map[Int, Seq[Location]]]

    Retrieves the mapping of lines to locations available for a specific file.

    Retrieves the mapping of lines to locations available for a specific file.

    fileName

    The name of the file whose lines and underlying locations to retrieve

    returns

    Some mapping of file lines to associated locations in underlying JVM classes if the file exists, otherwise None

  22. val logger: Logger

    Attributes
    protected
    Definition Classes
    LogLike
  23. val loggerName: String

    Definition Classes
    LogLike
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def refreshAllClasses(): Unit

    Refresh the list of classes contained by the underlying virtual machine.

    Refresh the list of classes contained by the underlying virtual machine. Groups by source path, falling back to a standard "ARRAY" grouping for references to array structures and "UNKNOWN" for references with no source name or known name.

  28. def refreshClass(referenceType: ReferenceType): Unit

    Refresh a single class given the reference type.

    Refresh a single class given the reference type.

    referenceType

    The reference type used for the refresh

  29. def singleSourcePath(referenceType: ReferenceType): Option[String]

    Retrieves the convergent source path of the provided reference type.

    Retrieves the convergent source path of the provided reference type.

    referenceType

    The reference instance whose source path to determine

    returns

    Some source path as a string if convergent, otherwise None

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  30. def suspendThreadAndExecute[T](threadReference: ThreadReference)(thunk: ⇒ T): Try[T]

    Executes the provided block of code during the state of a suspended thread.

    Executes the provided block of code during the state of a suspended thread. The thread reference is synchronized to prevent another thread suspending the same thread reference.

    T

    The type of result from the block of code

    thunk

    The block of code to execute

    returns

    The results of attempting to execute the block of code

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  31. def suspendVirtualMachineAndExecute[T](thunk: ⇒ T): Try[T]

    Executes the provided block of code during the state of a suspended virtual machine.

    Executes the provided block of code during the state of a suspended virtual machine. The virtual machine is synchronized to prevent another thread suspending the same virtual machine.

    T

    The type of result from the block of code

    thunk

    The block of code to execute

    returns

    The results of attempting to execute the block of code

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def underlyingReferencesForFile(fileName: String): Option[Seq[ReferenceType]]

    Retrieves the list of underlying JVM classes for the specified file.

    Retrieves the list of underlying JVM classes for the specified file.

    fileName

    The name of the file whose underlying representations to retrieve

    returns

    Some list of underlying class references if the file name can be found, otherwise None

  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JDIHelperMethods

Inherited from LogLike

Inherited from AnyRef

Inherited from Any

Ungrouped