APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.tools.jdi

public final Class InterfaceTypeImpl

extends InvokableTypeImpl
implements InterfaceType
Class Inheritance
All Implemented Interfaces
com.sun.jdi.InterfaceType, com.sun.jdi.ReferenceType, com.sun.jdi.Accessible, java.lang.Comparable, com.sun.jdi.Type, com.sun.jdi.Mirror
Imports
java.lang.ref.SoftReference, java.util.ArrayList, .Collections, .List, com.sun.jdi.ClassType, .InterfaceType, .Method, .ReferenceType, .VirtualMachine

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private SoftReference<List<InterfaceType>>

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
canInvoke(Method method)

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.canInvoke.

Checks the provided method whether it can be invoked

pack-priv CommandSender
getInvokeMethodSender(final ThreadReferenceImpl thread, final MethodImpl method, final ValueImpl[] args, final int options)

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.getInvokeMethodSender.

A subclass will provide specific CommandSender

public List<ClassType>
implementors()

Implements com.sun.jdi.InterfaceType.implementors.

Gets the currently prepared classes which directly implement this interface.

pack-priv List<InterfaceType>
interfaces()

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.interfaces.

Get the implemented/extended interfaces

pack-priv boolean
public boolean
isInitialized()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isInitialized.

Implements com.sun.jdi.ReferenceType.isInitialized.

Determines if this type has been initialized.

public List<InterfaceType>
subinterfaces()

Implements com.sun.jdi.InterfaceType.subinterfaces.

Gets the currently prepared interfaces which directly extend this interface.

pack-priv ClassType
public List<InterfaceType>
superinterfaces()

Implements com.sun.jdi.InterfaceType.superinterfaces.

Gets the interfaces directly extended by this interface.

public String
toString()

Overrides java.lang.Object.toString.

Implements com.sun.jdi.Mirror.toString.

Returns a String describing this mirror

pack-priv InvokableTypeImpl.InvocationResult
waitForReply(PacketStream stream)

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.waitForReply.

Waits for the reply to the last sent command

Inherited from com.sun.tools.jdi.InvokableTypeImpl:
addInterfacesaddVisibleMethodsallMethodsgetAllInterfacesinheritedTypesinvokeMethod

Field Detail

superinterfacesRefback to summary
private SoftReference<List<InterfaceType>> superinterfacesRef

Constructor Detail

InterfaceTypeImplback to summary
protected InterfaceTypeImpl(VirtualMachine aVm, long aRef)

Method Detail

canInvokeback to summary
pack-priv boolean canInvoke(Method method)

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.canInvoke.

Doc from com.sun.tools.jdi.InvokableTypeImpl.canInvoke.

Checks the provided method whether it can be invoked

Annotations
@Override
getInvokeMethodSenderback to summary
pack-priv CommandSender getInvokeMethodSender(final ThreadReferenceImpl thread, final MethodImpl method, final ValueImpl[] args, final int options)

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.getInvokeMethodSender.

Doc from com.sun.tools.jdi.InvokableTypeImpl.getInvokeMethodSender.

A subclass will provide specific CommandSender

Annotations
@Override
implementorsback to summary
public List<ClassType> implementors()

Implements com.sun.jdi.InterfaceType.implementors.

Doc from com.sun.jdi.InterfaceType.implementors.

Gets the currently prepared classes which directly implement this interface. The returned list contains only those classes that declared this interface in their "implements" clause.

interfacesback to summary
pack-priv List<InterfaceType> interfaces()

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.interfaces.

Doc from com.sun.tools.jdi.InvokableTypeImpl.interfaces.

Get the implemented/extended interfaces

Annotations
@Override
isAssignableToback to summary
pack-priv boolean isAssignableTo(ReferenceType type)

Overrides com.sun.tools.jdi.InvokableTypeImpl.isAssignableTo.

Annotations
@Override
isInitializedback to summary
public boolean isInitialized()

Overrides com.sun.tools.jdi.ReferenceTypeImpl.isInitialized.

Implements com.sun.jdi.ReferenceType.isInitialized.

Doc from com.sun.jdi.ReferenceType.isInitialized.

Determines if this type has been initialized. See the JVM specification for a definition of class verification. For InterfaceType, this method always returns the same value as isPrepared().

For arrays (ArrayType) and primitive classes, the return value is undefined.

subinterfacesback to summary
public List<InterfaceType> subinterfaces()

Implements com.sun.jdi.InterfaceType.subinterfaces.

Doc from com.sun.jdi.InterfaceType.subinterfaces.

Gets the currently prepared interfaces which directly extend this interface. The returned list contains only those interfaces that declared this interface in their "extends" clause.

superclassback to summary
pack-priv ClassType superclass()

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.superclass.

Doc from com.sun.tools.jdi.InvokableTypeImpl.superclass.

Get the ReferenceType superclass

Annotations
@Override
superinterfacesback to summary
public List<InterfaceType> superinterfaces()

Implements com.sun.jdi.InterfaceType.superinterfaces.

Doc from com.sun.jdi.InterfaceType.superinterfaces.

Gets the interfaces directly extended by this interface. The returned list contains only those interfaces this interface has declared to be extended.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements com.sun.jdi.Mirror.toString.

Doc from com.sun.jdi.Mirror.toString.

Returns a String describing this mirror

waitForReplyback to summary
pack-priv InvokableTypeImpl.InvocationResult waitForReply(PacketStream stream) throws JDWPException

Implements abstract com.sun.tools.jdi.InvokableTypeImpl.waitForReply.

Doc from com.sun.tools.jdi.InvokableTypeImpl.waitForReply.

Waits for the reply to the last sent command

Annotations
@Override
Exceptions
JDWPException:
when something goes wrong in JDWP
com.sun.tools.jdi back to summary

private Class InterfaceTypeImpl.IResult

extends Object
implements InvocationResult
Class Inheritance
All Implemented Interfaces
com.sun.tools.jdi.InvokableTypeImpl.InvocationResult

Field Summary

Modifier and TypeField and Description
private final JDWP.InterfaceType.InvokeMethod

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ObjectReferenceImpl
public ValueImpl
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

rsltback to summary
private final JDWP.InterfaceType.InvokeMethod rslt

Constructor Detail

IResultback to summary
public IResult(JDWP.InterfaceType.InvokeMethod rslt)

Method Detail

getExceptionback to summary
public ObjectReferenceImpl getException()

Implements com.sun.tools.jdi.InvokableTypeImpl.InvocationResult.getException.

Annotations
@Override
getResultback to summary
public ValueImpl getResult()

Implements com.sun.tools.jdi.InvokableTypeImpl.InvocationResult.getResult.

Annotations
@Override