MCPcopy Index your code
hub / github.com/processing/processing / vmEvent

Method vmEvent

java/src/processing/mode/java/Debugger.java:531–560  ·  view source on GitHub ↗

Callback for VM events. Will be called from another thread. (VMEventReader) @param es Incoming set of events from VM

(EventSet es)

Source from the content-addressed store, hash-verified

529 * @param es Incoming set of events from VM
530 */
531 public synchronized void vmEvent(EventSet es) {
532 VirtualMachine vm = vm();
533 if (vm != null && vm != es.virtualMachine()) {
534 // This is no longer VM we are interested in,
535 // we already cleaned up and run different VM now.
536 return;
537 }
538 for (Event e : es) {
539 log("*** VM Event: " + e);
540 if (e instanceof VMStartEvent) {
541 vmStartEvent();
542
543 } else if (e instanceof ClassPrepareEvent) {
544 vmClassPrepareEvent((ClassPrepareEvent) e);
545
546 } else if (e instanceof BreakpointEvent) {
547 vmBreakPointEvent((BreakpointEvent) e);
548
549 } else if (e instanceof StepEvent) {
550 vmStepEvent((StepEvent) e);
551
552 } else if (e instanceof VMDisconnectEvent) {
553 stopDebug();
554
555 } else if (e instanceof VMDeathEvent) {
556 started = false;
557 editor.statusEmpty();
558 }
559 }
560 }
561
562 private void createClassPrepareRequest(String name) {
563 ClassPrepareRequest classPrepareRequest = runtime.vm().eventRequestManager().createClassPrepareRequest();

Callers

nothing calls this directly

Calls 8

vmMethod · 0.95
logMethod · 0.95
vmStartEventMethod · 0.95
vmClassPrepareEventMethod · 0.95
vmBreakPointEventMethod · 0.95
vmStepEventMethod · 0.95
stopDebugMethod · 0.95
statusEmptyMethod · 0.80

Tested by

no test coverage detected