| java.lang.Object org.eclipse.jdi.internal.MirrorImpl org.eclipse.jdi.internal.AccessibleImpl org.eclipse.jdi.internal.TypeImpl org.eclipse.jdi.internal.ReferenceTypeImpl
All known Subclasses: org.eclipse.jdi.internal.ClassTypeImpl, org.eclipse.jdi.internal.ArrayTypeImpl, org.eclipse.jdi.internal.InterfaceTypeImpl,
Inner Class :protected static class FileInfo | |
Inner Class :protected static class Stratum | |
Method Summary | |
protected void | addStratum(Stratum stratum) Add a new stratum to this type. | public List | allFields() | public List | allInterfaces() Returns the interfaces declared as implemented by this class. | public List | allLineLocations() | public List | allLineLocations(String stratum, String sourceName) | public List | allLineLocations(String stratumId, String sourceName, MethodImpl method, long[] codeIndexTable, int[] javaStratumLineNumberTable) Return the locations of all lines in the given source file of the given stratum which
are included in the given method. | public List | allMethods() | public List | availableStrata() | public ClassLoaderReference | classLoader() | public ClassObjectReference | classObject() Returns the class object that corresponds to this type in the target VM. | public static String[] | classStatusStrings() | public int | compareTo(Object object) | public byte[] | constantPool() | public int | constantPoolCount() | public static TypeImpl | create(VirtualMachineImpl vmImpl, String signature, ClassLoaderReference classLoader) | public Value | createNullValue() | public String | defaultStratum() | public boolean | equals(Object object) | public boolean | failedToInitialize() | public Field | fieldByName(String name) Returns the visible Field with the given non-ambiguous name. | public List | fields() Returns a list containing each Field declared in this type. | public FieldImpl | findField(JdwpFieldID fieldID) | public MethodImpl | findMethod(JdwpMethodID methodID) | public void | flushStoredJdwpResults() Flushes all stored Jdwp results. | public String | genericSignature() | public int | getClassFileVersion() | public static void | getConstantMaps() Retrieves constant mappings. | public JdwpReferenceTypeID | getRefTypeID() | public Value | getValue(Field field) Returns the Value of a given static Field in this type. | public Map | getValues(List fields) | public int | hashCode() | public List | instances(long maxInstances) | public List | interfaces() Returns the interfaces declared as implemented by this class. | public boolean | isAbstract() | public boolean | isFinal() | public boolean | isHCREligible() | public boolean | isInitialized() | public boolean | isPrepared() | public boolean | isStatic() | public boolean | isVerified() | public boolean | isVersionKnown() | protected int | lineNumber(long codeIndex, MethodImpl method, String stratumId) Return the number of the line of which the given code index
is part of the translation, for this stratum. | public List | locationsOfLine(int line) Returns a List filled with all Location objects that map to the given line number. | public List | locationsOfLine(String stratum, String sourceName, int lineNumber) | public List | locationsOfLine(String stratumId, String sourceName, int lineNumber, MethodImpl method) Return the location which are part of the translation of the given line,
in the given stratum in the source file with the given source name. | public int | majorVersion() | public List | methods() | public List | methodsByName(String name) | public List | methodsByName(String name, String signature) | public int | minorVersion() | public int | modifiers() | public String | name() | public List | nestedTypes() Returns a List containing each ReferenceType declared within this type. | public static ReferenceTypeImpl | readWithTypeTag(MirrorImpl target, DataInputStream in) | public static ReferenceTypeImpl | readWithTypeTagAndSignature(MirrorImpl target, boolean withGenericSignature, DataInputStream in) | protected void | setDefaultStratumId(String defaultStratumId) Set the default stratum. | public void | setGenericSignature(String genericSignature) | protected void | setOutputFileName(String outputFileName) Set the output file name, i.e. | public String | signature() Returns the JNI-style signature for this type. | public String | sourceDebugExtension() | public String | sourceName() | protected String | sourceName(long codeIndex, MethodImpl method, String stratumId) Return the name of the input source file of which the given code index
is part of the translation, for this stratum. | public List | sourceNames(String stratumId) | protected String | sourcePath(long codeIndex, MethodImpl method, String stratumId) Return the path of the input source file of which the given code index
is part of the translation, for this stratum. | public List | sourcePaths(String stratumId) | protected int | status() | abstract public byte | typeTag() | public List | visibleFields() | public List | visibleMethods() | public void | write(MirrorImpl target, DataOutputStream out) Writes JDWP representation. | public static void | writeNull(MirrorImpl target, DataOutputStream out) Writes representation of null referenceType. | public void | writeWithTag(MirrorImpl target, DataOutputStream out) Writes JDWP representation. |
JDWP_CLASS_STATUS_ERROR | final public static int JDWP_CLASS_STATUS_ERROR(Code) | | |
JDWP_CLASS_STATUS_INITIALIZED | final public static int JDWP_CLASS_STATUS_INITIALIZED(Code) | | |
JDWP_CLASS_STATUS_PREPARED | final public static int JDWP_CLASS_STATUS_PREPARED(Code) | | |
JDWP_CLASS_STATUS_VERIFIED | final public static int JDWP_CLASS_STATUS_VERIFIED(Code) | | ClassStatus Constants.
|
fInterfaces | protected List fInterfaces(Code) | | The following are the stored results of JDWP calls.
|
addStratum | protected void addStratum(Stratum stratum)(Code) | | Add a new stratum to this type.
|
allFields | public List allFields()(Code) | | Returns a list containing each Field declared in this type, and its super-classes, implemented interfaces, and/or super-interfaces. |
allInterfaces | public List allInterfaces()(Code) | | Returns the interfaces declared as implemented by this class. Interfaces indirectly implemented (extended by the implemented interface or implemented by a superclass) are not included. |
allLineLocations | public List allLineLocations(String stratumId, String sourceName, MethodImpl method, long[] codeIndexTable, int[] javaStratumLineNumberTable) throws AbsentInformationException(Code) | | Return the locations of all lines in the given source file of the given stratum which
are included in the given method.
If sourceName is null , return the locations for all source file
in the given stratum.
Parameters: stratumId - the stratum id Parameters: sourceName - the name of the source file Parameters: method - Parameters: codeIndexTable - the list of code indexes for the method, as get from the VM/JDWP Parameters: javaStratumLineNumberTable - the list of line numbers in the java stratum for the method, as get from the VM/JDWP |
allMethods | public List allMethods()(Code) | | Returns a list containing each Method declared in this type, and its super-classes, implemented interfaces, and/or super-interfaces. |
classLoader | public ClassLoaderReference classLoader()(Code) | | Returns the class loader object which loaded the class corresponding to this type. |
classObject | public ClassObjectReference classObject()(Code) | | Returns the class object that corresponds to this type in the target VM. |
classStatusStrings | public static String[] classStatusStrings()(Code) | | Returns a map with string representations of tags. |
compareTo | public int compareTo(Object object)(Code) | | Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. |
failedToInitialize | public boolean failedToInitialize()(Code) | | Returns true if initialization failed for this class. |
fieldByName | public Field fieldByName(String name)(Code) | | Returns the visible Field with the given non-ambiguous name. |
fields | public List fields()(Code) | | Returns a list containing each Field declared in this type. |
findField | public FieldImpl findField(JdwpFieldID fieldID)(Code) | | Returns FieldImpl of a field in the reference specified by a given fieldID, or null if not found. |
findMethod | public MethodImpl findMethod(JdwpMethodID methodID)(Code) | | Returns MethodImpl of a method in the reference specified by a given methodID, or null if not found. |
flushStoredJdwpResults | public void flushStoredJdwpResults()(Code) | | Flushes all stored Jdwp results.
|
getClassFileVersion | public int getClassFileVersion()(Code) | | Returns the CRC-32 of the given reference type, undefined if unknown. |
getConstantMaps | public static void getConstantMaps()(Code) | | Retrieves constant mappings.
|
getValue | public Value getValue(Field field)(Code) | | Returns the Value of a given static Field in this type. |
getValues | public Map getValues(List fields)(Code) | | a Map of the requested static Field objects with their Value. |
hashCode | public int hashCode()(Code) | | Returns the hash code value. |
interfaces | public List interfaces()(Code) | | Returns the interfaces declared as implemented by this class. Interfaces indirectly implemented (extended by the implemented interface or implemented by a superclass) are not included. |
isAbstract | public boolean isAbstract()(Code) | | Returns true if the type was declared abstract. |
isFinal | public boolean isFinal()(Code) | | Returns true if the type was declared final. |
isHCREligible | public boolean isHCREligible()(Code) | | Returns whether the reference type is HCR-eligible. |
isInitialized | public boolean isInitialized()(Code) | | Returns true if this type has been initialized. |
isPrepared | public boolean isPrepared()(Code) | | Returns true if this type has been prepared. |
isStatic | public boolean isStatic()(Code) | | Returns true if the type was declared static. |
isVerified | public boolean isVerified()(Code) | | Returns true if this type has been verified. |
isVersionKnown | public boolean isVersionKnown()(Code) | | Returns whether the CRC-32 of the given reference type is known. |
lineNumber | protected int lineNumber(long codeIndex, MethodImpl method, String stratumId)(Code) | | Return the number of the line of which the given code index
is part of the translation, for this stratum.
Parameters: codeIndex - the index of the code. Parameters: method - the method where is the code. Parameters: stratumId - |
locationsOfLine | public List locationsOfLine(String stratumId, String sourceName, int lineNumber, MethodImpl method) throws AbsentInformationException(Code) | | Return the location which are part of the translation of the given line,
in the given stratum in the source file with the given source name.
If sourceName is null , return the locations for all source file
in the given stratum.
The returned location are in the given method.
Parameters: stratumId - the stratum id. Parameters: sourceName - the name of the source file. Parameters: lineNumber - the number of the line. Parameters: method - throws: AbsentInformationException - if the specified sourceName is not valid. |
methods | public List methods()(Code) | | Returns a list containing each Method declared directly in this type. |
methodsByName | public List methodsByName(String name)(Code) | | Returns a List containing each visible Method that has the given name. |
methodsByName | public List methodsByName(String name, String signature)(Code) | | Returns a List containing each visible Method that has the given name and signature. |
modifiers | public int modifiers()(Code) | | Returns modifier bits. |
name | public String name()(Code) | | Returns the fully qualified name of this type. |
nestedTypes | public List nestedTypes()(Code) | | Returns a List containing each ReferenceType declared within this type. |
setDefaultStratumId | protected void setDefaultStratumId(String defaultStratumId)(Code) | | Set the default stratum. This stratum will be used for the method
on strata related data, but with no stratum parameter.
|
setGenericSignature | public void setGenericSignature(String genericSignature)(Code) | | if genericSignature is null , the generic signature is set to not-known
(genericSignature() will ask the VM for the generic signature)
if genericSignature is an empty String, the generic signature is set to no-generic-signature
(genericSignature() will return null)
if genericSignature is an non-empty String, the generic signature is set to the specified value
(genericSignature() will return the specified value)
since: 3.0 |
setOutputFileName | protected void setOutputFileName(String outputFileName)(Code) | | Set the output file name, i.e. the .java file used to generate
the bytecode.
|
signature | public String signature()(Code) | | Returns the JNI-style signature for this type. |
sourceName | protected String sourceName(long codeIndex, MethodImpl method, String stratumId) throws AbsentInformationException(Code) | | Return the name of the input source file of which the given code index
is part of the translation, for this stratum.
If the code at the given index is not a part of the translation of
the given stratum code, return the name of the primary input source file.
Parameters: codeIndex - the index of the code. Parameters: method - the method where is the code. Parameters: stratumId - |
sourcePath | protected String sourcePath(long codeIndex, MethodImpl method, String stratumId) throws AbsentInformationException(Code) | | Return the path of the input source file of which the given code index
is part of the translation, for this stratum.
If the code at the given index is not a part of the translation of
the given stratum code, return the path of the primary input source file.
Parameters: codeIndex - the index of the code. Parameters: method - the method where is the code. Parameters: stratumId - |
status | protected int status()(Code) | | Returns status of class/interface. |
typeTag | abstract public byte typeTag()(Code) | | Returns type tag. |
visibleFields | public List visibleFields()(Code) | | Returns a list containing each visible and unambiguous Field in this type. |
visibleMethods | public List visibleMethods()(Code) | | Returns a list containing each visible and unambiguous Method in this type. |
Methods inherited from org.eclipse.jdi.internal.MirrorImpl | public void checkVM(Mirror mirror) throws VMMismatchException(Code)(Java Doc) public void defaultIOExceptionHandler(Exception e)(Code)(Java Doc) public void defaultReplyErrorHandler(int error)(Code)(Java Doc) public void disconnectVM()(Code)(Java Doc) final public JdwpCommandPacket getCommandVM(int command, long timeout) throws InterruptedException(Code)(Java Doc) public void handledJdwpEventSet()(Code)(Java Doc) public void handledJdwpRequest()(Code)(Java Doc) public void initJdwpEventSet(JdwpCommandPacket commandPacket)(Code)(Java Doc) public void initJdwpRequest()(Code)(Java Doc) public boolean readBoolean(String description, DataInputStream in) throws IOException(Code)(Java Doc) public byte readByte(String description, DataInputStream in) throws IOException(Code)(Java Doc) public byte readByte(String description, Map valueToString, DataInputStream in) throws IOException(Code)(Java Doc) public byte readByte(String description, String[] bitNames, DataInputStream in) throws IOException(Code)(Java Doc) public byte[] readByteArray(int length, String description, DataInputStream in) throws IOException(Code)(Java Doc) public char readChar(String description, DataInputStream in) throws IOException(Code)(Java Doc) public double readDouble(String description, DataInputStream in) throws IOException(Code)(Java Doc) public float readFloat(String description, DataInputStream in) throws IOException(Code)(Java Doc) public int readInt(String description, DataInputStream in) throws IOException(Code)(Java Doc) public int readInt(String description, Map valueToString, DataInputStream in) throws IOException(Code)(Java Doc) public int readInt(String description, String[] bitNames, DataInputStream in) throws IOException(Code)(Java Doc) public long readLong(String description, DataInputStream in) throws IOException(Code)(Java Doc) public short readShort(String description, DataInputStream in) throws IOException(Code)(Java Doc) public short readShort(String description, Map valueToString, DataInputStream in) throws IOException(Code)(Java Doc) public short readShort(String description, String[] bitNames, DataInputStream in) throws IOException(Code)(Java Doc) public String readString(String description, DataInputStream in) throws IOException(Code)(Java Doc) public JdwpReplyPacket requestVM(int command, byte[] outData)(Code)(Java Doc) public JdwpReplyPacket requestVM(int command, ByteArrayOutputStream outData)(Code)(Java Doc) public JdwpReplyPacket requestVM(int command, ObjectReferenceImpl object)(Code)(Java Doc) public JdwpReplyPacket requestVM(int command, ReferenceTypeImpl refType)(Code)(Java Doc) public JdwpReplyPacket requestVM(int command)(Code)(Java Doc) public String toString()(Code)(Java Doc) public VerboseWriter verboseWriter()(Code)(Java Doc) public VirtualMachine virtualMachine()(Code)(Java Doc) public VirtualMachineImpl virtualMachineImpl()(Code)(Java Doc) public void writeBoolean(boolean value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeByte(byte value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeByte(byte value, String description, Map valueToString, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeByte(byte value, String description, String[] bitNames, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeChar(char value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeDouble(double value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeFloat(float value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeInt(int value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeInt(int value, String description, Map valueToString, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeInt(int value, String description, String[] bitNames, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeLong(long value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeShort(short value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeShort(short value, String description, Map valueToString, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeShort(short value, String description, String[] bitNames, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeString(String value, String description, DataOutputStream out) throws IOException(Code)(Java Doc) public void writeVerboseCommandPacketHeader(JdwpCommandPacket commandPacket)(Code)(Java Doc)
|
|
|