java.lang.Object
org.eclipse.jdi.internal.MirrorImpl
org.eclipse.jdi.internal.AccessibleImpl
org.eclipse.jdi.internal.TypeImpl
org.eclipse.jdi.internal.ReferenceTypeImpl
org.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.
| 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 |
|
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.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 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 |
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.
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.
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