org.scaladebugger.api.utils

JDILoader

class JDILoader extends Logging

Represents the loader for the JDI (Java Debugger Interface) library shipped with the Oracle JDK and Open JDK. Attempts to load the library from a classloader or searches for the library in common locations.

Linear Supertypes
Logging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JDILoader
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JDILoader(_classLoader: ClassLoader = ...)

    _classLoader

    The classloader to use in an attempt to load the JDI

Type Members

  1. implicit class LoggerExtras extends AnyRef

    Definition Classes
    Logging

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def classForName(name: String, initialize: Boolean = true, classLoader: ClassLoader = getSystemClassLoader): Class[_]

    Attempts to load the specified class.

    Attempts to load the specified class.

    name

    The full name of the class to load

    initialize

    If true, initializes the class

    classLoader

    The class loader to use for loading the class, defaults to the system class loader

    returns

    The class loaded by the class loader

    Attributes
    protected
    Annotations
    @throws( classOf[ClassNotFoundException] )
    Exceptions thrown
    ClassNotFoundException

    If the class was not found using the class loader or any of its parents

    Note

    Exposed for testing!

  8. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def findPotentialJdkJarPaths(jarPath: String): Seq[String]

    Attempts to find potential paths for a jar in the JDK.

    Attempts to find potential paths for a jar in the JDK.

    jarPath

    The path to the jar relative to the JDK

    returns

    The sequence of potential paths

    Attributes
    protected
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def getSystemClassLoader: ClassLoader

    Retrieves the class loader used by the JVM.

    Retrieves the class loader used by the JVM.

    returns

    The class loader used by default for the JVM system

    Attributes
    protected
    Note

    Wraps ClassLoader.getSystemClassLoader(), used for testing.

  15. def hashCode(): Int

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

    Definition Classes
    Any
  17. def isJdiAvailable(classLoader: ClassLoader = _classLoader): Boolean

    Checks if it is possible to use the JDI using either the given class loader or by using a jar located in the JDK (if possible).

    Checks if it is possible to use the JDI using either the given class loader or by using a jar located in the JDK (if possible).

    classLoader

    The class loader to use to check for JDI (default is this class's class loader)

    returns

    True if JDI is able to be loaded, otherwise false

  18. val logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. def tryLoadJdi(classLoader: ClassLoader = _classLoader): Boolean

    Attempts to ensure that the JDI is loaded.

    Attempts to ensure that the JDI is loaded. First, checks if the JDI is already available. If not, attempts to find a JDK path and load it.

    classLoader

    The class loader to use to check for JDI (default is this class's class loader)

    returns

    True if successful, otherwise false

  25. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped