c

org.scaladebugger.api.lowlevel.classes

StandardClassManager

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)

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

Value Members

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

    Definition Classes
    StandardClassManagerClassManager
  2. 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

    Definition Classes
    StandardClassManagerClassManager
  3. 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

    Definition Classes
    ClassManager
  4. 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

    Definition Classes
    ClassManager
  5. 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

    Definition Classes
    ClassManager
  6. def classesWithName(className: String): Seq[ReferenceType]

    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
  7. def fieldsWithName(className: String, fieldName: String): Seq[Field]

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

    Definition Classes
    StandardClassManagerClassManager
  9. def hasClassWithName(className: String): Boolean

    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
  10. def hasFieldWithName(className: String, fieldName: String): Boolean

    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
  11. def hasMethodWithName(className: String, methodName: String): Boolean

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

    Definition Classes
    StandardClassManagerClassManager
  13. def methodsWithName(className: String, methodName: String): Seq[Method]

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

    Definition Classes
    StandardClassManagerClassManager
  15. 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

    Definition Classes
    StandardClassManagerClassManager
  16. 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

    Definition Classes
    StandardClassManagerClassManager