TargetAdapter.java revision 0
1008N/A/*
1008N/A * Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
1008N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1008N/A *
1008N/A * This code is free software; you can redistribute it and/or modify it
1008N/A * under the terms of the GNU General Public License version 2 only, as
1008N/A * published by the Free Software Foundation.
1008N/A *
1008N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1008N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1008N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1008N/A * version 2 for more details (a copy is included in the LICENSE file that
1008N/A * accompanied this code).
1008N/A *
1008N/A * You should have received a copy of the GNU General Public License version
1008N/A * 2 along with this work; if not, write to the Free Software Foundation,
1008N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1008N/A *
1008N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1008N/A * CA 95054 USA or visit www.sun.com if you need additional information or
1008N/A * have any questions.
1008N/A *
1008N/A */
1008N/A
1008N/Aimport com.sun.jdi.event.*;
1008N/A
1008N/A/**
1008N/A * Base TargetListener implementation
1008N/A */
1008N/Apublic class TargetAdapter implements TargetListener {
1008N/A boolean shouldRemoveListener = false;
1008N/A
1008N/A public void removeThisListener() {
1008N/A shouldRemoveListener = true;
1008N/A }
1008N/A
1008N/A public boolean shouldRemoveListener() {
1008N/A return shouldRemoveListener;
1116N/A }
1116N/A
1116N/A public void eventSetReceived(EventSet set) {}
1116N/A public void eventSetComplete(EventSet set) {}
1116N/A public void eventReceived(Event event) {}
1116N/A public void breakpointReached(BreakpointEvent event) {}
1116N/A public void exceptionThrown(ExceptionEvent event) {}
1008N/A public void stepCompleted(StepEvent event) {}
1008N/A public void classPrepared(ClassPrepareEvent event) {}
1008N/A public void classUnloaded(ClassUnloadEvent event) {}
1008N/A public void methodEntered(MethodEntryEvent event) {}
1008N/A public void methodExited(MethodExitEvent event) {}
1008N/A public void fieldAccessed(AccessWatchpointEvent event) {}
1116N/A public void fieldModified(ModificationWatchpointEvent event) {}
1116N/A public void threadStarted(ThreadStartEvent event) {}
1116N/A public void threadDied(ThreadDeathEvent event) {}
1116N/A public void vmStarted(VMStartEvent event) {}
1116N/A public void vmDied(VMDeathEvent event) {}
1116N/A public void vmDisconnected(VMDisconnectEvent event) {}
1116N/A}
1008N/A