1 /*******************************************************************************
2  * Copyright (c) 2000, 2015 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package com.sun.jdi;
15 
16 import java.util.List;
17 import java.util.Map;
18 /**
19  * See http://docs.oracle.com/javase/6/docs/jdk/api/jpda/jdi/com/sun/jdi/ObjectReference.html
20  */
21 public interface ObjectReference extends com.sun.jdi.Value {
22 	public static final int INVOKE_SINGLE_THREADED = 1;
23 	public static final int INVOKE_NONVIRTUAL = 2;
disableCollection()24 	public void disableCollection();
enableCollection()25 	public void enableCollection();
entryCount()26 	public int entryCount() throws IncompatibleThreadStateException;
27 	@Override
equals(Object arg1)28 	public boolean equals(Object arg1);
getValue(Field arg1)29 	public Value getValue(Field arg1);
getValues(List<? extends Field> arg1)30 	public Map<Field, Value> getValues(List<? extends Field> arg1);
31 	@Override
hashCode()32 	public int hashCode();
invokeMethod(ThreadReference arg1, Method arg2, List<? extends Value> arg3, int arg4)33 	public Value invokeMethod(ThreadReference arg1, Method arg2, List<? extends Value> arg3,	int arg4) throws InvalidTypeException, ClassNotLoadedException,	IncompatibleThreadStateException, InvocationException;
isCollected()34 	public boolean isCollected();
owningThread()35 	public ThreadReference owningThread() throws IncompatibleThreadStateException;
referenceType()36 	public ReferenceType referenceType();
setValue(Field arg1, Value arg2)37 	public void setValue(Field arg1, Value arg2) throws InvalidTypeException, ClassNotLoadedException;
uniqueID()38 	public long uniqueID();
waitingThreads()39 	public List<ThreadReference> waitingThreads() throws IncompatibleThreadStateException;
referringObjects(long arg1)40 	public List<ObjectReference> referringObjects(long arg1);
41 }
42