trait ClassManager extends AnyRef
Represents a manager of classes available on the virtual machine and their associated files.
- Alphabetic
- By Inheritance
- ClassManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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.
-
abstract
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
-
abstract
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
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
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
-
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
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )