{"modulePath":"github.com/google/gapid","version":"v1.6.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package jdwp\n\nPackage jdwp implements types to communicate using the the Java Debug Wire Protocol.\n\n## Constants\n\n```go\nconst (\n\t// StatusVerified is used to describe a class in the verified state.\n\tStatusVerified = ClassStatus(1)\n\t// StatusPrepared is used to describe a class in the prepared state.\n\tStatusPrepared = ClassStatus(2)\n\t// StatusInitialized is used to describe a class in the initialized state.\n\tStatusInitialized = ClassStatus(4)\n\t// StatusError is used to describe a class in the error state.\n\tStatusError = ClassStatus(8)\n)\n```\n\n```go\nconst (\n\tErrNone                                = Error(0)\n\tErrInvalidThread                       = Error(10)\n\tErrInvalidThreadGroup                  = Error(11)\n\tErrInvalidPriority                     = Error(12)\n\tErrThreadNotSuspended                  = Error(13)\n\tErrThreadSuspended                     = Error(14)\n\tErrInvalidObject                       = Error(20)\n\tErrInvalidClass                        = Error(21)\n\tErrClassNotPrepared                    = Error(22)\n\tErrInvalidMethodID                     = Error(23)\n\tErrInvalidLocation                     = Error(24)\n\tErrInvalidFieldID                      = Error(25)\n\tErrInvalidFrameID                      = Error(30)\n\tErrNoMoreFrames                        = Error(31)\n\tErrOpaqueFrame                         = Error(32)\n\tErrNotCurrentFrame                     = Error(33)\n\tErrTypeMismatch                        = Error(34)\n\tErrInvalidSlot                         = Error(35)\n\tErrDuplicate                           = Error(40)\n\tErrNotFound                            = Error(41)\n\tErrInvalidMonitor                      = Error(50)\n\tErrNotMonitorOwner                     = Error(51)\n\tErrInterrupt                           = Error(52)\n\tErrInvalidClassFormat                  = Error(60)\n\tErrCircularClassDefinition             = Error(61)\n\tErrFailsVerification                   = Error(62)\n\tErrAddMethodNotImplemented             = Error(63)\n\tErrSchemaChangeNotImplemented          = Error(64)\n\tErrInvalidTypestate                    = Error(65)\n\tErrHierarchyChangeNotImplemented       = Error(66)\n\tErrDeleteMethodNotImplemented          = Error(67)\n\tErrUnsupportedVersion                  = Error(68)\n\tErrNamesDontMatch                      = Error(69)\n\tErrClassModifiersChangeNotImplemented  = Error(70)\n\tErrMethodModifiersChangeNotImplemented = Error(71)\n\tErrNotImplemented                      = Error(99)\n\tErrNullPointer                         = Error(100)\n\tErrAbsentInformation                   = Error(101)\n\tErrInvalidEventType                    = Error(102)\n\tErrIllegalArgument                     = Error(103)\n\tErrOutOfMemory                         = Error(110)\n\tErrAccessDenied                        = Error(111)\n\tErrVMDead                              = Error(112)\n\tErrInternal                            = Error(113)\n\tErrUnattachedThread                    = Error(115)\n\tErrInvalidTag                          = Error(500)\n\tErrAlreadyInvoking                     = Error(502)\n\tErrInvalidIndex                        = Error(503)\n\tErrInvalidLength                       = Error(504)\n\tErrInvalidString                       = Error(506)\n\tErrInvalidClassLoader                  = Error(507)\n\tErrInvalidArray                        = Error(508)\n\tErrTransportLoad                       = Error(509)\n\tErrTransportInit                       = Error(510)\n\tErrNativeMethod                        = Error(511)\n\tErrInvalidCount                        = Error(512)\n)\n```\n\n```go\nconst (\n\t// SingleStep is the kind of event raised when a single-step has been completed.\n\tSingleStep = EventKind(1)\n\t// Breakpoint is the kind of event raised when a breakpoint has been hit.\n\tBreakpoint = EventKind(2)\n\t// FramePop is the kind of event raised when a stack-frame is popped.\n\tFramePop = EventKind(3)\n\t// Exception is the kind of event raised when an exception is thrown.\n\tException = EventKind(4)\n\t// UserDefined is the kind of event raised when a user-defind event is fired.\n\tUserDefined = EventKind(5)\n\t// ThreadStart is the kind of event raised when a new thread is started.\n\tThreadStart = EventKind(6)\n\t// ThreadDeath is the kind of event raised when a thread is stopped.\n\tThreadDeath = EventKind(7)\n\t// ClassPrepare is the kind of event raised when a class enters the prepared state.\n\tClassPrepare = EventKind(8)\n\t// ClassUnload is the kind of event raised when a class is unloaded.\n\tClassUnload = EventKind(9)\n\t// ClassLoad is the kind of event raised when a class enters the loaded state.\n\tClassLoad = EventKind(10)\n\t// FieldAccess is the kind of event raised when a field is accessed.\n\tFieldAccess = EventKind(20)\n\t// FieldModification is the kind of event raised when a field is modified.\n\tFieldModification = EventKind(21)\n\t// ExceptionCatch is the kind of event raised when an exception is caught.\n\tExceptionCatch = EventKind(30)\n\t// MethodEntry is the kind of event raised when a method has been entered.\n\tMethodEntry = EventKind(40)\n\t// MethodExit is the kind of event raised when a method has been exited.\n\tMethodExit = EventKind(41)\n\t// VMStart is the kind of event raised when the virtual machine is initialized.\n\tVMStart = EventKind(90)\n\t// VMDeath is the kind of event raised when the virtual machine is shutdown.\n\tVMDeath = EventKind(99)\n)\n```\n\n```go\nconst (\n\t// InvokeSingleThreaded prevents the resume of all other threads when\n\t// performing the invoke. Once the invoke has finished, the single thread will\n\t// suspended again.\n\tInvokeSingleThreaded = InvokeOptions(1)\n\n\t// InvokeNonvirtual invokes the method without using regular, virtual\n\t// invocation.\n\tInvokeNonvirtual = InvokeOptions(2)\n)\n```\n\n```go\nconst (\n\tModPublic       = ModBits(1)\n\tModPrivate      = ModBits(2)\n\tModProtected    = ModBits(4)\n\tModStatic       = ModBits(8)\n\tModFinal        = ModBits(16)\n\tModSynchronized = ModBits(32)\n\tModVolatile     = ModBits(64)\n\tModTransient    = ModBits(128)\n\tModInterface    = ModBits(512)\n\tModNative       = ModBits(256)\n\tModAbstract     = ModBits(1024)\n\tModStrict       = ModBits(2048)\n)\n```\n\n```go\nconst (\n\t// SuspendNone suspends no threads when a event is raised.\n\tSuspendNone = SuspendPolicy(0)\n\t// SuspendEventThread suspends only the event's thread when a event is raised.\n\tSuspendEventThread = SuspendPolicy(1)\n\t// SuspendAll suspends all threads when a event is raised.\n\tSuspendAll = SuspendPolicy(2)\n)\n```\n\n```go\nconst (\n\tTagArray       = Tag(91)  // '[' - an array object (objectID size).\n\tTagByte        = Tag(66)  // 'B' - a byte value (1 byte).\n\tTagChar        = Tag(67)  // 'C' - a character value (2 bytes).\n\tTagObject      = Tag(76)  // 'L' - an object (objectID size).\n\tTagFloat       = Tag(70)  // 'F' - a float value (4 bytes).\n\tTagDouble      = Tag(68)  // 'D' - a double value (8 bytes).\n\tTagInt         = Tag(73)  // 'I' - an int value (4 bytes).\n\tTagLong        = Tag(74)  // 'J' - a long value (8 bytes).\n\tTagShort       = Tag(83)  // 'S' - a short value (2 bytes).\n\tTagVoid        = Tag(86)  // 'V' - a void value (no bytes).\n\tTagBoolean     = Tag(90)  // 'Z' - a boolean value (1 byte).\n\tTagString      = Tag(115) // 's' - a String object (objectID size).\n\tTagThread      = Tag(116) // 't' - a Thread object (objectID size).\n\tTagThreadGroup = Tag(103) // 'g' - a ThreadGroup object (objectID size).\n\tTagClassLoader = Tag(108) // 'l' - a ClassLoader object (objectID size).\n\tTagClassObject = Tag(99)  // 'c' - a class object object (objectID size).\n)\n```\n\n```go\nconst (\n\tThreadZombie   = ThreadStatus(0)\n\tThreadRunning  = ThreadStatus(1)\n\tThreadSleeping = ThreadStatus(2)\n\tThreadMonitor  = ThreadStatus(3)\n\tThreadWait     = ThreadStatus(4)\n)\n```\n\n```go\nconst (\n\tNotSuspended = SuspendStatus(0)\n\tSuspended    = SuspendStatus(1)\n)\n```\n\n```go\nconst (\n\tClass     = TypeTag(1) // Type is a class.\n\tInterface = TypeTag(2) // Type is an interface.\n\tArray     = TypeTag(3) // Type is an array.\n)\n```\n\n## Types\n\n```go\ntype ArrayID uint64\n```\nArrayID is an array instance identifier. ArrayID can always be safely cast to the less specific ObjectID.\n\n```go\nfunc (i ArrayID) ID() ObjectID\n```\nID returns the ArrayID as an ObjectID\n\n```go\nfunc (i ArrayID) String() string\n```\n\n```go\ntype ArrayTypeID uint64\n```\nArrayTypeID is an array reference type identifier. ArrayTypeID can always be safely cast to the less specific ReferenceTypeID.\n\n```go\nfunc (i ArrayTypeID) String() string\n```\n\n```go\ntype Char int16\n```\nChar is a 16-bit character type.\n\n```go\ntype ClassExcludeEventModifier string\n```\nClassExcludeEventModifier is an EventModifier that filters the events to those that are not associated with class names that match the pattern. See ClassMatchEventModifier for the permitted patterns.\n\n```go\nfunc (m ClassExcludeEventModifier) String() string\n```\n\n```go\ntype ClassID uint64\n```\nClassID is a class reference type identifier. ClassID can always be safely cast to the less specific ReferenceTypeID.\n\n```go\nfunc (i ClassID) String() string\n```\n\n```go\ntype ClassInfo struct {\n\tKind      TypeTag         // Kind of reference type\n\tTypeID    ReferenceTypeID // Matching loaded reference type\n\tSignature string          // The class signature\n\tStatus    ClassStatus     // The class status\n}\n```\nClassInfo describes a loaded classes matching the requested signature.\n\n```go\nfunc (c ClassInfo) ClassID() ClassID\n```\nClassID returns the class identifier for the ClassBySignature.\n\n```go\ntype ClassLoaderID uint64\n```\nClassLoaderID is class loader identifier. ClassLoaderID can always be safely cast to the less specific ObjectID.\n\n```go\nfunc (i ClassLoaderID) ID() ObjectID\n```\nID returns the ClassLoaderID as an ObjectID\n\n```go\nfunc (i ClassLoaderID) String() string\n```\n\n```go\ntype ClassMatchEventModifier string\n```\nClassMatchEventModifier is an EventModifier that filters the events to those that are associated with class names that match the pattern. The pattern can be an exact class name match, for use a '\\*' wildcard at the start or end of the string. Examples: • \"java.lang.String\" • \"\\*.String\" • \"java.lang.\\*\"\n\n```go\nfunc (m ClassMatchEventModifier) String() string\n```\n\n```go\ntype ClassObjectID uint64\n```\nClassObjectID is a class object instance identifier. ClassObjectID can always be safely cast to the less specific ObjectID.\n\n```go\nfunc (i ClassObjectID) ID() ObjectID\n```\nID returns the ClassObjectID as an ObjectID\n\n```go\nfunc (i ClassObjectID) String() string\n```\n\n```go\ntype ClassOnlyEventModifier ClassID\n```\nClassOnlyEventModifier is an EventModifier that filters the events to those that are associated with the specified class.\n\n```go\nfunc (m ClassOnlyEventModifier) String() string\n```\n\n```go\ntype ClassStatus int\n```\nClassStatus is an enumerator of class loading state. See [https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-5.html#jvms-5.3](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-5.html#jvms-5.3) for detailed descriptions of the loading states.\n\n```go\nfunc (c ClassStatus) String() string\n```\n\n```go\ntype Connection struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\nConnection represents a JDWP connection.\n\n```go\nfunc Open(ctx context.Context, conn io.ReadWriteCloser) (*Connection, error)\n```\nOpen creates a Connection using conn for I/O.\n\n```go\nfunc (c *Connection) CreateString(str string) (StringID, error)\n```\nCreateString returns the StringID for the given string.\n\n```go\nfunc (c *Connection) DisableGC(object ObjectID) error\n```\nDisableGC disables garbage collection for the specified object.\n\n```go\nfunc (c *Connection) EnableGC(object ObjectID) error\n```\nEnableGC enables garbage collection for the specified object.\n\n```go\nfunc (c *Connection) GetAllClasses() ([]ClassInfo, error)\n```\nGetAllClasses returns all the active threads by ID.\n\n```go\nfunc (c *Connection) GetAllThreads() ([]ThreadID, error)\n```\nGetAllThreads returns all the active threads by ID.\n\n```go\nfunc (c *Connection) GetArrayLength(id ArrayID) (int, error)\n```\nGetArrayLength returns the length of the specified array.\n\n```go\nfunc (c *Connection) GetArrayValues(id ArrayID, first, length int) ([]Value, error)\n```\nGetArrayValues the values of the specified array.\n\n```go\nfunc (c *Connection) GetClassBySignature(signature string) (ClassInfo, error)\n```\nGetClassBySignature returns the single loaded class matching the requested signature from the server. If there are no, or more than one class found, then an error is returned.\n\n```go\nfunc (c *Connection) GetClassMethod(class ClassID, name, signature string) (Method, error)\n```\nGetClassMethod looks up the method with the specified signature on class.\n\n```go\nfunc (c *Connection) GetClassesBySignature(signature string) ([]ClassInfo, error)\n```\nGetClassesBySignature returns all the loaded classes matching the requested signature from the server.\n\n```go\nfunc (c *Connection) GetFieldValues(obj ObjectID, fields ...FieldID) ([]Value, error)\n```\nGetFieldValues returns the values of all the instance fields.\n\n```go\nfunc (c *Connection) GetFields(ty ReferenceTypeID) (Fields, error)\n```\nGetFields returns all the fields for the specified type.\n\n```go\nfunc (c *Connection) GetFrames(thread ThreadID, start, count int) ([]FrameInfo, error)\n```\nGetFrames returns a number of stack frames.\n\n```go\nfunc (c *Connection) GetIDSizes() (IDSizes, error)\n```\nGetIDSizes returns the sizes of all the variably sized data types.\n\n```go\nfunc (c *Connection) GetImplemented(ty ReferenceTypeID) ([]InterfaceID, error)\n```\nGetImplemented returns all the direct interfaces implemented by the specified type.\n\n```go\nfunc (c *Connection) GetLocationMethodName(l Location) (string, error)\n```\nGetLocationMethodName returns the name of the method from the location.\n\n```go\nfunc (c *Connection) GetMethods(ty ReferenceTypeID) (Methods, error)\n```\nGetMethods returns all the methods for the specified type.\n\n```go\nfunc (c *Connection) GetObjectType(object ObjectID) (ObjectType, error)\n```\nGetObjectType returns the type of the specified object.\n\n```go\nfunc (c *Connection) GetStaticFieldValues(ty ReferenceTypeID, fields ...FieldID) ([]Value, error)\n```\nGetStaticFieldValues returns the values of all the requests static fields.\n\n```go\nfunc (c *Connection) GetString(id StringID) (string, error)\n```\nGetString returns the string text for the given StringID.\n\n```go\nfunc (c *Connection) GetSuperClass(class ClassID) (ClassID, error)\n```\nGetSuperClass returns the immediate super class of the specified class.\n\n```go\nfunc (c *Connection) GetSuspendCount(id ThreadID) (int, error)\n```\nGetSuspendCount returns the number of times the thread has been suspended without a corresponding resume.\n\n```go\nfunc (c *Connection) GetThisObject(thread ThreadID, frame FrameID) (TaggedObjectID, error)\n```\nGetThisObject returns the this object for the specified thread and stack frame.\n\n```go\nfunc (c *Connection) GetThreadName(id ThreadID) (string, error)\n```\nGetThreadName returns a thread's name.\n\n```go\nfunc (c *Connection) GetThreadStatus(id ThreadID) (ThreadStatus, SuspendStatus, error)\n```\nGetThreadStatus returns the status of the thread.\n\n```go\nfunc (c *Connection) GetTypeSignature(ty ReferenceTypeID) (string, error)\n```\nGetTypeSignature returns the Java type signature for the specified type.\n\n```go\nfunc (c *Connection) GetValues(thread ThreadID, frame FrameID, slots []VariableRequest) ([]Value, error)\n```\nGetValues returns the set of objects for the specified thread and frame, based on their slots.\n\n```go\nfunc (c *Connection) GetVersion() (Version, error)\n```\nGetVersion returns the JDWP version from the server.\n\n```go\nfunc (c *Connection) InvokeMethod(object ObjectID, class ClassID, method MethodID, thread ThreadID, options InvokeOptions, args ...Value) (InvokeResult, error)\n```\nInvokeMethod invokes the specified static method.\n\n```go\nfunc (c *Connection) InvokeStaticMethod(class ClassID, method MethodID, thread ThreadID, options InvokeOptions, args ...Value) (InvokeResult, error)\n```\nInvokeStaticMethod invokes the specified static method.\n\n```go\nfunc (c *Connection) NewArray(ty ArrayTypeID, length int) (TaggedObjectID, error)\n```\nNewArray constructs a new array of the specified type and length.\n\n```go\nfunc (c *Connection) NewInstance(class ClassID, constructor MethodID, thread ThreadID, options InvokeOptions, args ...Value) (NewInstanceResult, error)\n```\nNewInstance invokes the specified constructor.\n\n```go\nfunc (c *Connection) ReflectedType(id ClassObjectID) (ReferenceTypeID, error)\n```\nReflectedType returns the reference type reflected by the class object.\n\n```go\nfunc (c *Connection) Resume(id ThreadID) error\n```\nResume resumes the specified thread.\n\n```go\nfunc (c *Connection) ResumeAll() error\n```\nResumeAll resumes all threads.\n\n```go\nfunc (c *Connection) ResumeAllExcept(thread ThreadID) error\n```\nResumeAllExcept resumes all threads except for the specified thread.\n\n```go\nfunc (c *Connection) SetArrayValues(id ArrayID, first int, values interface{}) error\n```\nSetArrayValues the values of the specified array.\n\n```go\nfunc (c *Connection) SetValues(thread ThreadID, frame FrameID, slots []VariableAssignmentRequest) error\n```\nSetValues sets the values for the local variables given thread and frame\n\n```go\nfunc (c *Connection) Suspend(id ThreadID) error\n```\nSuspend suspends the specified thread.\n\n```go\nfunc (c *Connection) SuspendAll() error\n```\nSuspendAll suspends all threads.\n\n```go\nfunc (c *Connection) VariableTable(classTy ReferenceTypeID, method MethodID) (VariableTable, error)\n```\nVariableTable returns all of the variables that are present in the given Method.\n\n```go\nfunc (c *Connection) WaitForClassPrepare(ctx context.Context, pattern string) (ThreadID, error)\n```\nWaitForClassPrepare blocks until a class with a name that matches the pattern is prepared, and then returns the thread that prepared the class. All threads are suspended when the method returns.\n\n```go\nfunc (c *Connection) WaitForMethodEntry(ctx context.Context, class ClassID, method MethodID) (*EventMethodEntry, error)\n```\nWaitForMethodEntry blocks until the method on class is entered, and then returns the method entry event. All threads are suspended when the method returns.\n\n```go\nfunc (c *Connection) WatchEvents(\n\tctx context.Context,\n\tkind EventKind,\n\tsuspendPolity SuspendPolicy,\n\thandler func(Event) bool,\n\tmodifiers ...EventModifier) error\n```\nWatchEvents sets an event watcher, calling handler for each received event. WatchEvents will continue to watch for events until handler returns false or the context is cancelled.\n\n```go\ntype CountEventModifier int\n```\nCountEventModifier is an EventModifier that limits the number of times an event is fired. For example, using a CountEventModifier of 2 will only let two events fire.\n\n```go\nfunc (m CountEventModifier) String() string\n```\n\n```go\ntype Error uint16\n```\nError is an enumerator of error codes returned by JDWP.\n\n```go\nfunc (e Error) Error() string\n```\n\n```go\ntype Event interface {\n\tKind() EventKind\n\t// contains filtered or unexported methods\n}\n```\nEvent is the interface implemented by all events raised by the VM.\n\n```go\ntype EventBreakpoint struct {\n\tRequest  EventRequestID\n\tThread   ThreadID\n\tLocation Location\n}\n```\nEventBreakpoint represents an event raised when a breakpoint has been hit.\n\n```go\nfunc (EventBreakpoint) Kind() EventKind\n```\nKind returns Breakpoint\n\n```go\ntype EventClassPrepare struct {\n\tRequest   EventRequestID\n\tThread    ThreadID\n\tClassKind TypeTag\n\tClassType ReferenceTypeID\n\tSignature string\n\tStatus    ClassStatus\n}\n```\nEventClassPrepare represents an event raised when a class enters the prepared state.\n\n```go\nfunc (EventClassPrepare) Kind() EventKind\n```\nKind returns ClassPrepare\n\n```go\ntype EventClassUnload struct {\n\tRequest   EventRequestID\n\tSignature string\n}\n```\nEventClassUnload represents an event raised when a class is unloaded.\n\n```go\nfunc (EventClassUnload) Kind() EventKind\n```\nKind returns ClassUnload\n\n```go\ntype EventException struct {\n\tRequest       EventRequestID\n\tThread        ThreadID\n\tLocation      Location\n\tException     TaggedObjectID\n\tCatchLocation Location\n}\n```\nEventException represents an event raised when an exception is thrown.\n\n```go\nfunc (EventException) Kind() EventKind\n```\nKind returns Exception\n\n```go\ntype EventFieldAccess struct {\n\tRequest   EventRequestID\n\tThread    ThreadID\n\tLocation  Location\n\tFieldKind TypeTag\n\tFieldType ReferenceTypeID\n\tField     FieldID\n\tObject    TaggedObjectID\n}\n```\nEventFieldAccess represents an event raised when a field is accessed.\n\n```go\nfunc (EventFieldAccess) Kind() EventKind\n```\nKind returns FieldAccess\n\n```go\ntype EventFieldModification struct {\n\tRequest   EventRequestID\n\tThread    ThreadID\n\tLocation  Location\n\tFieldKind TypeTag\n\tFieldType ReferenceTypeID\n\tField     FieldID\n\tObject    TaggedObjectID\n\tNewValue  Value\n}\n```\nEventFieldModification represents an event raised when a field is modified.\n\n```go\nfunc (EventFieldModification) Kind() EventKind\n```\nKind returns FieldModification\n\n```go\ntype EventKind uint8\n```\nEventKind represents the type of event to set, or being raised.\n\n```go\nfunc (k EventKind) String() string\n```\n\n```go\ntype EventMethodEntry struct {\n\tRequest  EventRequestID\n\tThread   ThreadID\n\tLocation Location\n}\n```\nEventMethodEntry represents an event raised when a method has been entered.\n\n```go\nfunc (EventMethodEntry) Kind() EventKind\n```\nKind returns MethodEntry\n\n```go\ntype EventMethodExit struct {\n\tRequest  EventRequestID\n\tThread   ThreadID\n\tLocation Location\n}\n```\nEventMethodExit represents an event raised when a method has been exited.\n\n```go\nfunc (EventMethodExit) Kind() EventKind\n```\nKind returns MethodExit\n\n```go\ntype EventModifier interface {\n\t// contains filtered or unexported methods\n}\n```\nEventModifier is the interface implemented by all event modifier types. These are filters on the events that are raised. See [http://docs.oracle.com/javase/1.5.0/docs/guide/jpda/jdwp/jdwp-protocol.html#JDWP\\_EventRequest\\_Set](http://docs.oracle.com/javase/1.5.0/docs/guide/jpda/jdwp/jdwp-protocol.html#JDWP_EventRequest_Set) for detailed descriptions and rules for each of the EventModifiers.\n\n```go\ntype EventRequestID int\n```\nEventRequestID is an identifier of an event request.\n\n```go\ntype EventSingleStep struct {\n\tRequest  EventRequestID\n\tThread   ThreadID\n\tLocation Location\n}\n```\nEventSingleStep represents an event raised when a single-step has been completed.\n\n```go\nfunc (EventSingleStep) Kind() EventKind\n```\nKind returns SingleStep\n\n```go\ntype EventThreadDeath struct {\n\tRequest EventRequestID\n\tThread  ThreadID\n}\n```\nEventThreadDeath represents an event raised when a thread is stopped.\n\n```go\nfunc (EventThreadDeath) Kind() EventKind\n```\nKind returns ThreadDeath\n\n```go\ntype EventThreadStart struct {\n\tRequest EventRequestID\n\tThread  ThreadID\n}\n```\nEventThreadStart represents an event raised when a new thread is started.\n\n```go\nfunc (EventThreadStart) Kind() EventKind\n```\nKind returns ThreadStart\n\n```go\ntype EventVMDeath struct {\n\tRequest EventRequestID\n}\n```\nEventVMDeath represents an event raised when the virtual machine is stopped.\n\n```go\nfunc (EventVMDeath) Kind() EventKind\n```\nKind returns VMDeath\n\n```go\ntype EventVMStart struct {\n\tRequest EventRequestID\n\tThread  ThreadID\n}\n```\nEventVMStart represents an event raised when the virtual machine is started.\n\n```go\nfunc (EventVMStart) Kind() EventKind\n```\nKind returns VMStart\n\n```go\ntype ExceptionOnlyEventModifier struct {\n\tExceptionOrNull ReferenceTypeID // If not nil, only permit exceptions of this type.\n\tCaught          bool            // Report caught exceptions\n\tUncaught        bool            // Report uncaught exceptions\n}\n```\nExceptionOnlyEventModifier is an EventModifier that filters exception events. Can only be used for exception events.\n\n```go\nfunc (m ExceptionOnlyEventModifier) String() string\n```\n\n```go\ntype Field struct {\n\tID        FieldID\n\tName      string\n\tSignature string\n\tModBits   ModBits\n}\n```\nField describes a single field\n\n```go\ntype FieldID uint64\n```\nFieldID is the identifier for a single method for a class or interface.\n\n```go\nfunc (i FieldID) String() string\n```\n\n```go\ntype FieldOnlyEventModifier struct {\n\tType  ReferenceTypeID\n\tField FieldID\n}\n```\nFieldOnlyEventModifier is an EventModifier that filters events to those relating to the specified field. Can only be used for field access or field modified events.\n\n```go\nfunc (m FieldOnlyEventModifier) String() string\n```\n\n```go\ntype Fields []Field\n```\nFields is a collection of fields\n\n```go\nfunc (l Fields) FindByID(id FieldID) *Field\n```\nFindByID returns the field with the matching identifier in l, or nil if no field with a matching identifier is found in l.\n\n```go\nfunc (l Fields) FindByName(name string) *Field\n```\nFindByName returns the field with the matching name, or nil if no field with a matching name is found in l.\n\n```go\nfunc (l Fields) FindBySignature(name, sig string) *Field\n```\nFindBySignature returns the field with the matching signature in l, or nil if no field with a matching signature is found in l.\n\n```go\nfunc (l Fields) String() string\n```\n\n```go\ntype FrameID uint64\n```\nFrameID is the identifier for a stack frame.\n\n```go\nfunc (i FrameID) String() string\n```\n\n```go\ntype FrameInfo struct {\n\tFrame    FrameID\n\tLocation Location\n}\n```\nFrameInfo describes a single stack frame.\n\n```go\ntype FrameVariable struct {\n\tCodeIndex uint64\n\tName      string\n\tSignature string\n\tLength    int\n\tSlot      int\n}\n```\nFrameVariable contains all of the information a single variable.\n\n```go\ntype IDSizes struct {\n\tFieldIDSize         int32 // FieldID size in bytes\n\tMethodIDSize        int32 // MethodID size in bytes\n\tObjectIDSize        int32 // ObjectID size in bytes\n\tReferenceTypeIDSize int32 // ReferenceTypeID size in bytes\n\tFrameIDSize         int32 // FrameID size in bytes\n}\n```\nIDSizes describes the sizes of all the variably sized data types.\n\n```go\ntype InstanceOnlyEventModifier ObjectID\n```\nInstanceOnlyEventModifier is an EventModifier that filters events to those which have the specified 'this' object.\n\n```go\nfunc (m InstanceOnlyEventModifier) String() string\n```\n\n```go\ntype InterfaceID uint64\n```\nInterfaceID is an interface reference type identifier. InterfaceID can always be safely cast to the less specific ReferenceTypeID.\n\n```go\nfunc (i InterfaceID) String() string\n```\n\n```go\ntype InvokeOptions int\n```\nInvokeOptions is a collection of bit flags controlling an invoke.\n\n```go\nfunc (i InvokeOptions) String() string\n```\n\n```go\ntype InvokeResult struct {\n\tResult    Value\n\tException TaggedObjectID\n}\n```\nInvokeResult holds the return values for a method invokation.\n\n```go\ntype Location struct {\n\tType     TypeTag\n\tClass    ClassID\n\tMethod   MethodID\n\tLocation uint64\n}\n```\nLocation describes a code location.\n\n```go\ntype LocationOnlyEventModifier Location\n```\nLocationOnlyEventModifier is an EventModifier that filters the events to those that only originate at the specified location.\n\n```go\nfunc (m LocationOnlyEventModifier) String() string\n```\n\n```go\ntype Method struct {\n\tID        MethodID\n\tName      string\n\tSignature string\n\tModBits   ModBits\n}\n```\nMethod describes a single method\n\n```go\ntype MethodID uint64\n```\nMethodID is the identifier for a single method for a class or interface.\n\n```go\nfunc (i MethodID) String() string\n```\n\n```go\ntype Methods []Method\n```\nMethods is a collection of methods\n\n```go\nfunc (l Methods) FindByID(id MethodID) *Method\n```\nFindByID returns the method with the matching identifier in l, or nil if no method with a matching identifier is found in l.\n\n```go\nfunc (l Methods) FindBySignature(name, sig string) *Method\n```\nFindBySignature returns the method with the matching signature in l, or nil if no method with a matching signature is found in l.\n\n```go\nfunc (l Methods) String() string\n```\n\n```go\ntype ModBits int\n```\nModBits represents the modifier bitflags for a class, method or field.\n\n```go\nfunc (m ModBits) Abstract() bool\n```\n\n```go\nfunc (m ModBits) Final() bool\n```\n\n```go\nfunc (m ModBits) Interface() bool\n```\n\n```go\nfunc (m ModBits) Native() bool\n```\n\n```go\nfunc (m ModBits) Private() bool\n```\n\n```go\nfunc (m ModBits) Protected() bool\n```\n\n```go\nfunc (m ModBits) Public() bool\n```\n\n```go\nfunc (m ModBits) Static() bool\n```\n\n```go\nfunc (m ModBits) Strict() bool\n```\n\n```go\nfunc (m ModBits) String() string\n```\n\n```go\nfunc (m ModBits) Synchronized() bool\n```\n\n```go\nfunc (m ModBits) Transient() bool\n```\n\n```go\nfunc (m ModBits) Volatile() bool\n```\n\n```go\ntype NewInstanceResult struct {\n\tResult    TaggedObjectID\n\tException TaggedObjectID\n}\n```\nNewInstanceResult holds the return values for a constructor invokation.\n\n```go\ntype Object interface {\n\tID() ObjectID\n}\n```\nObject is the interface implemented by all types that are a variant of ObjectID.\n\n```go\ntype ObjectID uint64\n```\nObjectID is an object instance identifier. If the specific object type is known, then ObjectID can be cast to ThreadID, ThreadGroupID, StringID, ClassLoaderID, ClassObjectID or ArrayID.\n\n```go\nfunc (i ObjectID) ID() ObjectID\n```\nID returns the ObjectID\n\n```go\nfunc (i ObjectID) String() string\n```\n\n```go\ntype ObjectType struct {\n\tKind TypeTag\n\tType ReferenceTypeID\n}\n```\nObjectType describes a Java type.\n\n```go\ntype ReferenceTypeID uint64\n```\nReferenceTypeID is a reference type identifier. If the specific reference type is known, then ReferenceTypeID can be cast to ClassID, InterfaceID or ArrayTypeID.\n\n```go\nfunc (i ReferenceTypeID) String() string\n```\n\n```go\ntype StepEventModifier struct {\n\tThread ThreadID\n\tSize   int\n\tDepth  int\n}\n```\nStepEventModifier is an EventModifier that filters step events to those which satisfy depth and size constraints. Can only be used with step events.\n\n```go\nfunc (m StepEventModifier) String() string\n```\n\n```go\ntype StringID uint64\n```\nStringID is a string instance identifier. StringID can always be safely cast to the less specific ObjectID.\n\n```go\nfunc (i StringID) ID() ObjectID\n```\nID returns the StringID as an ObjectID\n\n```go\nfunc (i StringID) String() string\n```\n\n```go\ntype SuspendPolicy byte\n```\nSuspendPolicy describes what threads should be suspended on an event being raised.\n\n```go\nfunc (s SuspendPolicy) String() string\n```\n\n```go\ntype SuspendStatus int\n```\nSuspendStatus is an enumerator of thread suspend state.\n\n```go\nfunc (s SuspendStatus) String() string\n```\n\n```go\ntype Tag uint8\n```\nTag is a type kind enumerator.\n\n```go\nfunc (t Tag) String() string\n```\n\n```go\ntype TaggedObjectID struct {\n\tType   Tag\n\tObject ObjectID\n}\n```\nTaggedObjectID is a type and object identifier pair.\n\n```go\nfunc (i TaggedObjectID) ID() ObjectID\n```\nID returns the ObjectID of the TaggedObjectID\n\n```go\ntype ThreadGroupID uint64\n```\nThreadGroupID is an thread group identifier. ThreadGroupID can always be safely cast to the less specific ObjectID.\n\n```go\nfunc (i ThreadGroupID) ID() ObjectID\n```\nID returns the ThreadGroupID as an ObjectID\n\n```go\nfunc (i ThreadGroupID) String() string\n```\n\n```go\ntype ThreadID uint64\n```\nThreadID is an thread instance identifier. ThreadID can always be safely cast to the less specific ObjectID.\n\n```go\nfunc (i ThreadID) ID() ObjectID\n```\nID returns the ThreadID as an ObjectID\n\n```go\nfunc (i ThreadID) String() string\n```\n\n```go\ntype ThreadOnlyEventModifier ThreadID\n```\nThreadOnlyEventModifier is an EventModifier that filters the events to those that are raised on the specified thread.\n\n```go\nfunc (m ThreadOnlyEventModifier) String() string\n```\n\n```go\ntype ThreadStatus int\n```\nThreadStatus is an enumerator of thread state.\n\n```go\nfunc (s ThreadStatus) String() string\n```\n\n```go\ntype TypeTag uint8\n```\nTypeTag is an enumerator of class, interface or array.\n\n```go\nfunc (t TypeTag) String() string\n```\n\n```go\ntype Value interface{}\n```\nValue is a generic value that can be one of the following types: • bool           • Char           • int            • int8 • int16          • int32          • int64          • float32 • float64        • ArrayID        • ClassLoaderID  • ClassObjectID • ObjectID       • StringID       • ThreadGroupID  • ThreadID • nil\n\n```go\ntype ValueSlice []Value\n```\nValueSlice contains a set of values\n\n```go\ntype VariableAssignmentRequest struct {\n\tIndex int\n\tValue Value\n}\n```\n\n```go\ntype VariableRequest struct {\n\tIndex int\n\tTag   uint8\n}\n```\n\n```go\ntype VariableTable struct {\n\tArgCount int\n\tSlots    []FrameVariable\n}\n```\nVariableTable contains all of the variables for a stack frame.\n\n```go\nfunc (v *VariableTable) ArgumentSlots() []FrameVariable\n```\nArgumentSlots returns the slots that could possibly be method arguments. Slots that could be method arguments are slots that are acessible at location 0 and have a length \u003e 0. Returns the result sorted by slot index.\n\n```go\ntype Version struct {\n\tDescription string //\t\tText information on the VM version\n\tJDWPMajor   int    //\t\tMajor JDWP Version number\n\tJDWPMinor   int    //\t\tMinor JDWP Version number\n\tVersion     string //\t\tTarget VM JRE version, as in the java.version property\n\tName        string //\t\tTarget VM name, as in the java.vm.name property\n}\n```\nVersion describes the JDWP version\n\n","path":"github.com/google/gapid/core/java/jdwp","name":"jdwp","synopsis":"Package jdwp implements types to communicate using the the Java Debug Wire Protocol.","isRedistributable":true}
