|
|||||||||
| Home >> All >> org >> eclipse >> jdi >> [ internal overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.jdi.internal
Class MirrorImpl

java.lang.Objectorg.eclipse.jdi.internal.MirrorImpl
- All Implemented Interfaces:
- com.sun.jdi.Mirror
- Direct Known Subclasses:
- AccessibleImpl, LocalVariableImpl, LocationImpl, StackFrameImpl, ValueImpl, VirtualMachineImpl
- public class MirrorImpl
- extends java.lang.Object
- implements com.sun.jdi.Mirror
- extends java.lang.Object
this class implements the corresponding interfaces declared by the JDI specification. See the com.sun.jdi package for more information.
| Field Summary | |
protected java.lang.String |
fDescription
Description of Mirror object. |
private boolean |
fPendingJdwpRequest
True if a Jdwp request has been sent to the VM and the response is not yet (fully) processed. |
protected VerboseWriter |
fVerboseWriter
VerboseWriter where verbose info is written to, null if no verbose must be given. |
private VirtualMachineImpl |
fVirtualMachineImpl
Virtual Machine of Mirror object. |
| Constructor Summary | |
MirrorImpl(java.lang.String description)
Constructor only to be used by Virtual Machine objects: stores description of Mirror object and Virtual Machine. |
|
MirrorImpl(java.lang.String description,
VirtualMachineImpl virtualMachineImpl)
Constructor stores description of Mirror object and its Virtual Machine. |
|
| Method Summary | |
void |
checkVM(com.sun.jdi.Mirror mirror)
|
void |
defaultIOExceptionHandler(java.lang.Exception e)
Performs default handling of IOException in creating or interpreting a Jdwp packet. |
void |
defaultReplyErrorHandler(int error)
Performs default error handling. |
void |
disconnectVM()
Disconnects VM. |
org.eclipse.jdi.internal.jdwp.JdwpCommandPacket |
getCommandVM(int command,
long timeout)
Waits for a specified command packet from the VM. |
void |
handledJdwpEventSet()
Processing after each Jdwp Event. |
void |
handledJdwpRequest()
Processing after each Jdwp Request. |
void |
initJdwpEventSet(org.eclipse.jdi.internal.jdwp.JdwpCommandPacket commandPacket)
Processing before each Jdwp event. |
void |
initJdwpRequest()
Processing before each Jdwp request. |
boolean |
readBoolean(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
byte |
readByte(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
byte |
readByte(java.lang.String description,
java.util.Map valueToString,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
byte |
readByte(java.lang.String description,
java.lang.String[] bitNames,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
byte[] |
readByteArray(int length,
java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
char |
readChar(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
double |
readDouble(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
float |
readFloat(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
int |
readInt(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
int |
readInt(java.lang.String description,
java.util.Map valueToString,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
int |
readInt(java.lang.String description,
java.lang.String[] bitNames,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
long |
readLong(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
short |
readShort(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
short |
readShort(java.lang.String description,
java.util.Map valueToString,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
short |
readShort(java.lang.String description,
java.lang.String[] bitNames,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
java.lang.String |
readString(java.lang.String description,
java.io.DataInputStream in)
Reads Jdwp data and, if verbose is on, outputs verbose info. |
org.eclipse.jdi.internal.jdwp.JdwpReplyPacket |
requestVM(int command)
Performs a VM request. |
org.eclipse.jdi.internal.jdwp.JdwpReplyPacket |
requestVM(int command,
byte[] outData)
Performs a VM request. |
org.eclipse.jdi.internal.jdwp.JdwpReplyPacket |
requestVM(int command,
java.io.ByteArrayOutputStream outData)
Performs a VM request. |
org.eclipse.jdi.internal.jdwp.JdwpReplyPacket |
requestVM(int command,
ObjectReferenceImpl object)
Performs a VM request for a specified object. |
org.eclipse.jdi.internal.jdwp.JdwpReplyPacket |
requestVM(int command,
ReferenceTypeImpl refType)
Performs a VM request for a specified object. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
VerboseWriter |
verboseWriter()
|
com.sun.jdi.VirtualMachine |
virtualMachine()
|
VirtualMachineImpl |
virtualMachineImpl()
|
void |
writeBoolean(boolean value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeByte(byte value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeByte(byte value,
java.lang.String description,
java.util.Map valueToString,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeByte(byte value,
java.lang.String description,
java.lang.String[] bitNames,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeChar(char value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeDouble(double value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeFloat(float value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeInt(int value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeInt(int value,
java.lang.String description,
java.util.Map valueToString,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeInt(int value,
java.lang.String description,
java.lang.String[] bitNames,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeLong(long value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeShort(short value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeShort(short value,
java.lang.String description,
java.util.Map valueToString,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeShort(short value,
java.lang.String description,
java.lang.String[] bitNames,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeString(java.lang.String value,
java.lang.String description,
java.io.DataOutputStream out)
Writes Jdwp data and, if verbose is on, outputs verbose info. |
void |
writeVerboseCommandPacketHeader(org.eclipse.jdi.internal.jdwp.JdwpCommandPacket commandPacket)
Writes command packet header if verbose is on. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
fDescription
protected java.lang.String fDescription
- Description of Mirror object.
fVirtualMachineImpl
private VirtualMachineImpl fVirtualMachineImpl
- Virtual Machine of Mirror object.
fVerboseWriter
protected VerboseWriter fVerboseWriter
- VerboseWriter where verbose info is written to, null if no verbose must be given.
fPendingJdwpRequest
private boolean fPendingJdwpRequest
- True if a Jdwp request has been sent to the VM and the response is not yet (fully) processed.
| Constructor Detail |
MirrorImpl
public MirrorImpl(java.lang.String description)
- Constructor only to be used by Virtual Machine objects: stores description of Mirror object and Virtual Machine.
MirrorImpl
public MirrorImpl(java.lang.String description, VirtualMachineImpl virtualMachineImpl)
- Constructor stores description of Mirror object and its Virtual Machine.
| Method Detail |
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).- Specified by:
toStringin interfacecom.sun.jdi.Mirror
virtualMachine
public com.sun.jdi.VirtualMachine virtualMachine()
- Specified by:
virtualMachinein interfacecom.sun.jdi.Mirror
virtualMachineImpl
public VirtualMachineImpl virtualMachineImpl()
initJdwpEventSet
public void initJdwpEventSet(org.eclipse.jdi.internal.jdwp.JdwpCommandPacket commandPacket)
- Processing before each Jdwp event.
handledJdwpEventSet
public void handledJdwpEventSet()
- Processing after each Jdwp Event.
initJdwpRequest
public void initJdwpRequest()
- Processing before each Jdwp request.
Note that this includes building the request message and parsing the response.
writeVerboseCommandPacketHeader
public void writeVerboseCommandPacketHeader(org.eclipse.jdi.internal.jdwp.JdwpCommandPacket commandPacket)
- Writes command packet header if verbose is on.
handledJdwpRequest
public void handledJdwpRequest()
- Processing after each Jdwp Request.
requestVM
public org.eclipse.jdi.internal.jdwp.JdwpReplyPacket requestVM(int command, byte[] outData)
- Performs a VM request.
requestVM
public org.eclipse.jdi.internal.jdwp.JdwpReplyPacket requestVM(int command, java.io.ByteArrayOutputStream outData)
- Performs a VM request.
requestVM
public org.eclipse.jdi.internal.jdwp.JdwpReplyPacket requestVM(int command, ObjectReferenceImpl object)
- Performs a VM request for a specified object.
requestVM
public org.eclipse.jdi.internal.jdwp.JdwpReplyPacket requestVM(int command, ReferenceTypeImpl refType)
- Performs a VM request for a specified object.
requestVM
public org.eclipse.jdi.internal.jdwp.JdwpReplyPacket requestVM(int command)
- Performs a VM request.
defaultReplyErrorHandler
public void defaultReplyErrorHandler(int error)
- Performs default error handling.
defaultIOExceptionHandler
public void defaultIOExceptionHandler(java.lang.Exception e)
- Performs default handling of IOException in creating or interpreting a Jdwp packet.
getCommandVM
public final org.eclipse.jdi.internal.jdwp.JdwpCommandPacket getCommandVM(int command, long timeout) throws java.lang.InterruptedException
- Waits for a specified command packet from the VM.
checkVM
public void checkVM(com.sun.jdi.Mirror mirror) throws com.sun.jdi.VMMismatchException
disconnectVM
public void disconnectVM()
- Disconnects VM.
readByte
public byte readByte(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readShort
public short readShort(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readInt
public int readInt(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readLong
public long readLong(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readByte
public byte readByte(java.lang.String description, java.util.Map valueToString, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readShort
public short readShort(java.lang.String description, java.util.Map valueToString, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readInt
public int readInt(java.lang.String description, java.util.Map valueToString, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readString
public java.lang.String readString(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readBoolean
public boolean readBoolean(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readChar
public char readChar(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readDouble
public double readDouble(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readFloat
public float readFloat(java.lang.String description, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readByteArray
public byte[] readByteArray(int length,
java.lang.String description,
java.io.DataInputStream in)
throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
writeByte
public void writeByte(byte value,
java.lang.String description,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeShort
public void writeShort(short value,
java.lang.String description,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeInt
public void writeInt(int value,
java.lang.String description,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeLong
public void writeLong(long value,
java.lang.String description,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeByte
public void writeByte(byte value,
java.lang.String description,
java.util.Map valueToString,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeShort
public void writeShort(short value,
java.lang.String description,
java.util.Map valueToString,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeInt
public void writeInt(int value,
java.lang.String description,
java.util.Map valueToString,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeString
public void writeString(java.lang.String value, java.lang.String description, java.io.DataOutputStream out) throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeBoolean
public void writeBoolean(boolean value,
java.lang.String description,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeChar
public void writeChar(char value,
java.lang.String description,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeDouble
public void writeDouble(double value,
java.lang.String description,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeFloat
public void writeFloat(float value,
java.lang.String description,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeShort
public void writeShort(short value,
java.lang.String description,
java.lang.String[] bitNames,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
writeInt
public void writeInt(int value,
java.lang.String description,
java.lang.String[] bitNames,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
readByte
public byte readByte(java.lang.String description, java.lang.String[] bitNames, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readShort
public short readShort(java.lang.String description, java.lang.String[] bitNames, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
readInt
public int readInt(java.lang.String description, java.lang.String[] bitNames, java.io.DataInputStream in) throws java.io.IOException
- Reads Jdwp data and, if verbose is on, outputs verbose info.
writeByte
public void writeByte(byte value,
java.lang.String description,
java.lang.String[] bitNames,
java.io.DataOutputStream out)
throws java.io.IOException
- Writes Jdwp data and, if verbose is on, outputs verbose info.
verboseWriter
public VerboseWriter verboseWriter()
|
|||||||||
| Home >> All >> org >> eclipse >> jdi >> [ internal overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.eclipse.jdi.internal.MirrorImpl