| Package | Description | 
|---|---|
| com.sun.jdi | This is the core package of the Java Debug
 Interface (JDI), it defines mirrors for values, types, and the target
 VirtualMachine itself - as well bootstrapping facilities. | 
| com.sun.jdi.event | This package defines JDI events and event processing. | 
| com.sun.jdi.request | This package is used to request that a JDI
 event be sent under specified conditions. | 
| Modifier and Type | Method and Description | 
|---|---|
| Field | ReferenceType. fieldByName(String fieldName)Finds the visible  Fieldwith the given
 non-ambiguous name. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Field> | ReferenceType. allFields()Returns a list containing each  Fielddeclared in this type,
 and its superclasses, implemented interfaces, and/or superinterfaces. | 
| List<Field> | ReferenceType. fields()Returns a list containing each  Fielddeclared in this type. | 
| Map<Field,Value> | ReferenceType. getValues(List<? extends Field> fields) | 
| Map<Field,Value> | ObjectReference. getValues(List<? extends Field> fields)Gets the value of multiple instance and/or static fields in this object. | 
| List<Field> | ReferenceType. visibleFields()Returns a list containing each unhidden and unambiguous  Fieldin this type. | 
| Modifier and Type | Method and Description | 
|---|---|
| Value | ReferenceType. getValue(Field field) | 
| Value | ObjectReference. getValue(Field sig)Gets the value of a given instance or static field in this object. | 
| void | ClassType. setValue(Field field,
        Value value)Assigns a value to a static field. | 
| void | ObjectReference. setValue(Field field,
        Value value)Sets the value of a given instance or static field in this object. | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<Field,Value> | ReferenceType. getValues(List<? extends Field> fields) | 
| Map<Field,Value> | ObjectReference. getValues(List<? extends Field> fields)Gets the value of multiple instance and/or static fields in this object. | 
| Modifier and Type | Method and Description | 
|---|---|
| Field | WatchpointEvent. field()Returns the field that is about to be accessed/modified. | 
| Modifier and Type | Method and Description | 
|---|---|
| Field | WatchpointRequest. field()Gets the Field being watched by this WatchpointRequest. | 
| Modifier and Type | Method and Description | 
|---|---|
| AccessWatchpointRequest | EventRequestManager. createAccessWatchpointRequest(Field field)Creates a new disabled watchpoint which watches accesses to the
 specified field. | 
| ModificationWatchpointRequest | EventRequestManager. createModificationWatchpointRequest(Field field)Creates a new disabled watchpoint which watches accesses to the
 specified field. | 
 Copyright © 1999, 2025, Oracle and/or its affiliates.  All rights reserved.