001: /*******************************************************************************
002: * Copyright (c) 2000, 2007 IBM Corporation and others.
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * IBM Corporation - initial API and implementation
010: *******************************************************************************/package com.sun.jdi;
011:
012: import java.util.List;
013: import java.util.Map;
014:
015: import com.sun.jdi.event.EventQueue;
016: import com.sun.jdi.request.EventRequestManager;
017:
018: public interface VirtualMachine extends Mirror {
019: public static final int TRACE_NONE = 0;
020: public static final int TRACE_SENDS = 1;
021: public static final int TRACE_RECEIVES = 2;
022: public static final int TRACE_EVENTS = 4;
023: public static final int TRACE_REFTYPES = 8;
024: public static final int TRACE_OBJREFS = 16;
025: public static final int TRACE_ALL = 16777215;
026:
027: public List allClasses();
028:
029: public List allThreads();
030:
031: public boolean canAddMethod();
032:
033: public boolean canBeModified();
034:
035: public boolean canGetBytecodes();
036:
037: public boolean canGetCurrentContendedMonitor();
038:
039: public boolean canGetMonitorInfo();
040:
041: public boolean canGetOwnedMonitorInfo();
042:
043: public boolean canGetSourceDebugExtension();
044:
045: public boolean canGetSyntheticAttribute();
046:
047: public boolean canPopFrames();
048:
049: public boolean canRedefineClasses();
050:
051: public boolean canRequestVMDeathEvent();
052:
053: public boolean canUnrestrictedlyRedefineClasses();
054:
055: public boolean canUseInstanceFilters();
056:
057: public boolean canWatchFieldAccess();
058:
059: public boolean canWatchFieldModification();
060:
061: public List classesByName(String arg1);
062:
063: public String description();
064:
065: public void dispose();
066:
067: public EventQueue eventQueue();
068:
069: public EventRequestManager eventRequestManager();
070:
071: public void exit(int arg1);
072:
073: public String getDefaultStratum();
074:
075: public BooleanValue mirrorOf(boolean arg1);
076:
077: public ByteValue mirrorOf(byte arg1);
078:
079: public CharValue mirrorOf(char arg1);
080:
081: public DoubleValue mirrorOf(double arg1);
082:
083: public FloatValue mirrorOf(float arg1);
084:
085: public IntegerValue mirrorOf(int arg1);
086:
087: public LongValue mirrorOf(long arg1);
088:
089: public StringReference mirrorOf(String arg1);
090:
091: public ShortValue mirrorOf(short arg1);
092:
093: public String name();
094:
095: public Process process();
096:
097: public void redefineClasses(Map arg1);
098:
099: public void resume();
100:
101: public void setDebugTraceMode(int arg1);
102:
103: public void setDefaultStratum(String arg1);
104:
105: public void suspend();
106:
107: public List topLevelThreadGroups();
108:
109: public String version();
110:
111: public boolean canGetInstanceInfo();
112:
113: public long[] instanceCounts(List arg1);
114:
115: public boolean canGetClassFileVersion();
116:
117: public boolean canGetConstantPool();
118:
119: public boolean canUseSourceNameFilters();
120:
121: public boolean canGetMethodReturnValues();
122:
123: public boolean canForceEarlyReturn();
124:
125: public boolean canRequestMonitorEvents();
126:
127: public boolean canGetMonitorFrameInfo();
128:
129: public VoidValue mirrorOfVoid();
130: }
|