Class

org.scaladebugger.api.lowlevel.classes

StandardClassManager

Related Doc: package classes

Permalink

class StandardClassManager extends ClassManager with JDIHelperMethods with Logging

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StandardClassManager
  2. JDIHelperMethods
  3. Logging
  4. ClassManager
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    _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

    Permalink
    Definition Classes
    Logging

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val _virtualMachine: VirtualMachine

    Permalink

    The virtual machine whose classes to manage

    The virtual machine whose classes to manage

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

    Permalink

    Retrieves a list of all available (cached) classes.

    Retrieves a list of all available (cached) classes.

    returns

    The collection of reference types

    Definition Classes
    StandardClassManagerClassManager
  6. def allFileNames: Seq[String]

    Permalink

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

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

    returns

    The collection of file names

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

    Permalink

    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

    Definition Classes
    ClassManager
  8. def allJavaFileNames: Seq[String]

    Permalink

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

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

    returns

    The collection of file names

    Definition Classes
    ClassManager
  9. def allScalaFileNames: Seq[String]

    Permalink

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

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

    returns

    The collection of file names

    Definition Classes
    ClassManager
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def classesWithName(className: String): Seq[ReferenceType]

    Permalink

    Retrieves all class references associated with the provided fully-qualified class name.

    Retrieves all class references associated with the provided fully-qualified class name.

    className

    The fully-qualified class name

    returns

    The collection of reference types representing the class

    Definition Classes
    StandardClassManagerClassManager
  12. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def fieldsWithName(className: String, fieldName: String): Seq[Field]

    Permalink

    Determines whether or not there is a field with the provided name.

    Determines whether or not there is a field with the provided name.

    className

    The fully-qualified class name of the class whose methods to inspect

    fieldName

    The name of the field to check

    returns

    True if the method exists, otherwise false

    Definition Classes
    ClassManager
  16. def fileNameForReferenceType(referenceType: ReferenceType): String

    Permalink

    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

    Definition Classes
    StandardClassManagerClassManager
  17. def finalize(): Unit

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

    Permalink

    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
  19. def findMainThread(): Option[ThreadReference]

    Permalink

    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
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hasClassWithName(className: String): Boolean

    Permalink

    Determines whether or not there is a class with the provided fully-qualified class name.

    Determines whether or not there is a class with the provided fully-qualified class name.

    className

    The fully-qualified class name

    returns

    True if a class exists, otherwise false

    Definition Classes
    ClassManager
  22. def hasFieldWithName(className: String, fieldName: String): Boolean

    Permalink

    Determines whether or not there is a field with the provided name.

    Determines whether or not there is a field with the provided name.

    className

    The fully-qualified class name of the class whose methods to inspect

    fieldName

    The name of the field to check

    returns

    True if the method exists, otherwise false

    Definition Classes
    ClassManager
  23. def hasMethodWithName(className: String, methodName: String): Boolean

    Permalink

    Determines whether or not there is a method with the provided name.

    Determines whether or not there is a method with the provided name.

    className

    The fully-qualified class name of the class whose methods to inspect

    methodName

    The name of the method to check

    returns

    True if the method exists, otherwise false

    Definition Classes
    ClassManager
  24. def hashCode(): Int

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

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

    Permalink

    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

    Definition Classes
    StandardClassManagerClassManager
  27. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def methodsWithName(className: String, methodName: String): Seq[Method]

    Permalink

    Determines whether or not there is a method with the provided name.

    Determines whether or not there is a method with the provided name.

    className

    The fully-qualified class name of the class whose methods to inspect

    methodName

    The name of the method to check

    returns

    True if the method exists, otherwise false

    Definition Classes
    ClassManager
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def refreshAllClasses(): Unit

    Permalink

    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.

    Definition Classes
    StandardClassManagerClassManager
  33. def refreshClass(referenceType: ReferenceType): Unit

    Permalink

    Refresh a single class given the reference type.

    Refresh a single class given the reference type.

    referenceType

    The reference type used for the refresh

    Definition Classes
    StandardClassManagerClassManager
  34. def retrieveCommandLineArguments(): Seq[String]

    Permalink

    Retrieves the command line arguments used to start this virtual machine.

    Retrieves the command line arguments used to start this virtual machine.

    returns

    The sequence of arguments as strings

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  35. def retrieveMainClassName(): String

    Permalink

    Retrieves the fully-qualified class name that invoked the main method of this virtual machine.

    Retrieves the fully-qualified class name that invoked the main method of this virtual machine.

    returns

    The name as a string

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  36. def singleSourcePath(referenceType: ReferenceType): Option[String]

    Permalink

    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
  37. def suspendThreadAndExecute[T](threadReference: ThreadReference)(thunk: ⇒ T): Try[T]

    Permalink

    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
  38. def suspendVirtualMachineAndExecute[T](thunk: ⇒ T): Try[T]

    Permalink

    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
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toString(): String

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

    Permalink

    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

    Definition Classes
    StandardClassManagerClassManager
  42. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JDIHelperMethods

Inherited from Logging

Inherited from ClassManager

Inherited from AnyRef

Inherited from Any

Ungrouped