Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jdi.internal
Class ClassTypeImpl  view ClassTypeImpl download ClassTypeImpl.java

java.lang.Object
  extended byorg.eclipse.jdi.internal.MirrorImpl
      extended byorg.eclipse.jdi.internal.AccessibleImpl
          extended byorg.eclipse.jdi.internal.TypeImpl
              extended byorg.eclipse.jdi.internal.ReferenceTypeImpl
                  extended byorg.eclipse.jdi.internal.ClassTypeImpl
All Implemented Interfaces:
com.sun.jdi.Accessible, com.sun.jdi.ClassType, java.lang.Comparable, com.sun.jdi.Mirror, org.eclipse.jdi.hcr.ReferenceType, com.sun.jdi.ReferenceType, com.sun.jdi.Type

public class ClassTypeImpl
extends ReferenceTypeImpl
implements com.sun.jdi.ClassType

this class implements the corresponding interfaces declared by the JDI specification. See the com.sun.jdi package for more information.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.jdi.internal.ReferenceTypeImpl
ReferenceTypeImpl.FileInfo, ReferenceTypeImpl.Stratum
 
Field Summary
private  ClassTypeImpl fSuperclass
          The following are the stored results of JDWP calls.
static byte typeTag
          JDWP Tag.
 
Fields inherited from class org.eclipse.jdi.internal.ReferenceTypeImpl
fInterfaces, JDWP_CLASS_STATUS_ERROR, JDWP_CLASS_STATUS_INITIALIZED, JDWP_CLASS_STATUS_PREPARED, JDWP_CLASS_STATUS_VERIFIED
 
Fields inherited from class org.eclipse.jdi.internal.TypeImpl
fName, fSignature
 
Fields inherited from class org.eclipse.jdi.internal.AccessibleImpl
MODIFIER_ACC_ABSTRACT, MODIFIER_ACC_BRIDGE, MODIFIER_ACC_ENUM, MODIFIER_ACC_FINAL, MODIFIER_ACC_NATIVE, MODIFIER_ACC_PRIVATE, MODIFIER_ACC_PROTECTED, MODIFIER_ACC_PUBLIC, MODIFIER_ACC_STATIC, MODIFIER_ACC_STRICT, MODIFIER_ACC_SUPER, MODIFIER_ACC_SYNCHRONIZED, MODIFIER_ACC_SYNTHETIC, MODIFIER_ACC_TRANSIENT, MODIFIER_ACC_VARARGS, MODIFIER_ACC_VOLITILE, MODIFIER_SYNTHETIC
 
Fields inherited from class org.eclipse.jdi.internal.MirrorImpl
fDescription, fVerboseWriter
 
Fields inherited from interface com.sun.jdi.ClassType
INVOKE_SINGLE_THREADED
 
Constructor Summary
ClassTypeImpl(VirtualMachineImpl vmImpl, org.eclipse.jdi.internal.jdwp.JdwpClassID classID)
          Creates new ClassTypeImpl.
ClassTypeImpl(VirtualMachineImpl vmImpl, org.eclipse.jdi.internal.jdwp.JdwpClassID classID, java.lang.String signature, java.lang.String genericSignature)
          Creates new ClassTypeImpl.
 
Method Summary
 com.sun.jdi.Method concreteMethodByName(java.lang.String name, java.lang.String signature)
           
 com.sun.jdi.Value createNullValue()
           
 void flushStoredJdwpResults()
          Flushes all stored Jdwp results.
 com.sun.jdi.Value invokeMethod(com.sun.jdi.ThreadReference thread, com.sun.jdi.Method method, java.util.List arguments, int options)
          Invokes the specified static Method in the target VM.
 boolean isEnum()
           
 com.sun.jdi.ObjectReference newInstance(com.sun.jdi.ThreadReference thread, com.sun.jdi.Method method, java.util.List arguments, int options)
          Constructs a new instance of this type, using the given constructor Method in the target VM.
private  int optionsToJdwpOptions(int options)
           
static ClassTypeImpl read(MirrorImpl target, java.io.DataInputStream in)
           
static ClassTypeImpl readWithSignature(MirrorImpl target, boolean withGenericSignature, java.io.DataInputStream in)
           
 void setValue(com.sun.jdi.Field field, com.sun.jdi.Value value)
          Assigns a value to a static field.
 java.util.List subclasses()
           
 com.sun.jdi.ClassType superclass()
           
 byte typeTag()
           
 
Methods inherited from class org.eclipse.jdi.internal.ReferenceTypeImpl
addStratum, allFields, allInterfaces, allLineLocations, allLineLocations, allLineLocations, allMethods, availableStrata, classLoader, classObject, classStatusStrings, compareTo, create, defaultStratum, equals, failedToInitialize, fieldByName, fields, findField, findMethod, genericSignature, getClassFileVersion, getConstantMaps, getRefTypeID, getValue, getValues, hashCode, interfaces, isAbstract, isFinal, isHCREligible, isInitialized, isPrepared, isStatic, isVerified, isVersionKnown, lineNumber, locationsOfLine, locationsOfLine, locationsOfLine, methods, methodsByName, methodsByName, modifiers, name, nestedTypes, readWithTypeTag, readWithTypeTagAndSignature, setDefaultStratumId, setGenericSignature, setOutputFileName, signature, sourceDebugExtension, sourceName, sourceName, sourceNames, sourcePath, sourcePaths, status, visibleFields, visibleMethods, write, writeNull, writeWithTag
 
Methods inherited from class org.eclipse.jdi.internal.TypeImpl
classNameToSignature, setName, setSignature, signatureToTag, toString
 
Methods inherited from class org.eclipse.jdi.internal.AccessibleImpl
getModifierStrings, isPackagePrivate, isPrivate, isProtected, isPublic
 
Methods inherited from class org.eclipse.jdi.internal.MirrorImpl
checkVM, defaultIOExceptionHandler, defaultReplyErrorHandler, disconnectVM, getCommandVM, handledJdwpEventSet, handledJdwpRequest, initJdwpEventSet, initJdwpRequest, readBoolean, readByte, readByte, readByte, readByteArray, readChar, readDouble, readFloat, readInt, readInt, readInt, readLong, readShort, readShort, readShort, readString, requestVM, requestVM, requestVM, requestVM, requestVM, verboseWriter, virtualMachine, virtualMachineImpl, writeBoolean, writeByte, writeByte, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeInt, writeInt, writeLong, writeShort, writeShort, writeShort, writeString, writeVerboseCommandPacketHeader
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.jdi.ClassType
allInterfaces, interfaces
 
Methods inherited from interface com.sun.jdi.ReferenceType
allFields, allLineLocations, allLineLocations, allMethods, availableStrata, classLoader, classObject, defaultStratum, equals, failedToInitialize, fieldByName, fields, genericSignature, getValue, getValues, hashCode, isAbstract, isFinal, isInitialized, isPrepared, isStatic, isVerified, locationsOfLine, locationsOfLine, methods, methodsByName, methodsByName, name, nestedTypes, sourceDebugExtension, sourceName, sourceNames, sourcePaths, visibleFields, visibleMethods
 
Methods inherited from interface com.sun.jdi.Type
signature
 
Methods inherited from interface com.sun.jdi.Mirror
toString, virtualMachine
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.sun.jdi.Accessible
isPackagePrivate, isPrivate, isProtected, isPublic
 

Field Detail

typeTag

public static final byte typeTag
JDWP Tag.

See Also:
Constant Field Values

fSuperclass

private ClassTypeImpl fSuperclass
The following are the stored results of JDWP calls.

Constructor Detail

ClassTypeImpl

public ClassTypeImpl(VirtualMachineImpl vmImpl,
                     org.eclipse.jdi.internal.jdwp.JdwpClassID classID)
Creates new ClassTypeImpl.


ClassTypeImpl

public ClassTypeImpl(VirtualMachineImpl vmImpl,
                     org.eclipse.jdi.internal.jdwp.JdwpClassID classID,
                     java.lang.String signature,
                     java.lang.String genericSignature)
Creates new ClassTypeImpl.

Method Detail

typeTag

public byte typeTag()
Specified by:
typeTag in class ReferenceTypeImpl

createNullValue

public com.sun.jdi.Value createNullValue()
Overrides:
createNullValue in class ReferenceTypeImpl

flushStoredJdwpResults

public void flushStoredJdwpResults()
Flushes all stored Jdwp results.

Overrides:
flushStoredJdwpResults in class ReferenceTypeImpl

optionsToJdwpOptions

private int optionsToJdwpOptions(int options)

concreteMethodByName

public com.sun.jdi.Method concreteMethodByName(java.lang.String name,
                                               java.lang.String signature)
Specified by:
concreteMethodByName in interface com.sun.jdi.ClassType

invokeMethod

public com.sun.jdi.Value invokeMethod(com.sun.jdi.ThreadReference thread,
                                      com.sun.jdi.Method method,
                                      java.util.List arguments,
                                      int options)
                               throws com.sun.jdi.InvalidTypeException,
                                      com.sun.jdi.ClassNotLoadedException,
                                      com.sun.jdi.IncompatibleThreadStateException,
                                      com.sun.jdi.InvocationException
Invokes the specified static Method in the target VM.

Specified by:
invokeMethod in interface com.sun.jdi.ClassType

newInstance

public com.sun.jdi.ObjectReference newInstance(com.sun.jdi.ThreadReference thread,
                                               com.sun.jdi.Method method,
                                               java.util.List arguments,
                                               int options)
                                        throws com.sun.jdi.InvalidTypeException,
                                               com.sun.jdi.ClassNotLoadedException,
                                               com.sun.jdi.IncompatibleThreadStateException,
                                               com.sun.jdi.InvocationException
Constructs a new instance of this type, using the given constructor Method in the target VM.

Specified by:
newInstance in interface com.sun.jdi.ClassType

setValue

public void setValue(com.sun.jdi.Field field,
                     com.sun.jdi.Value value)
              throws com.sun.jdi.InvalidTypeException,
                     com.sun.jdi.ClassNotLoadedException
Assigns a value to a static field. .

Specified by:
setValue in interface com.sun.jdi.ClassType

subclasses

public java.util.List subclasses()
Specified by:
subclasses in interface com.sun.jdi.ClassType

superclass

public com.sun.jdi.ClassType superclass()
Specified by:
superclass in interface com.sun.jdi.ClassType

read

public static ClassTypeImpl read(MirrorImpl target,
                                 java.io.DataInputStream in)
                          throws java.io.IOException

readWithSignature

public static ClassTypeImpl readWithSignature(MirrorImpl target,
                                              boolean withGenericSignature,
                                              java.io.DataInputStream in)
                                       throws java.io.IOException

isEnum

public boolean isEnum()
Specified by:
isEnum in interface com.sun.jdi.ClassType