diff options
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassObjectReferenceImpl.java')
-rw-r--r-- | org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassObjectReferenceImpl.java | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassObjectReferenceImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassObjectReferenceImpl.java index 95e9cbf37..6b35b17c8 100644 --- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassObjectReferenceImpl.java +++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassObjectReferenceImpl.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.jdi.internal; - import java.io.DataInputStream; import java.io.IOException; @@ -23,36 +22,39 @@ import com.sun.jdi.ClassObjectReference; import com.sun.jdi.ReferenceType; /** - * this class implements the corresponding interfaces - * declared by the JDI specification. See the com.sun.jdi package - * for more information. - * + * this class implements the corresponding interfaces declared by the JDI + * specification. See the com.sun.jdi package for more information. + * */ -public class ClassObjectReferenceImpl extends ObjectReferenceImpl implements ClassObjectReference { +public class ClassObjectReferenceImpl extends ObjectReferenceImpl implements + ClassObjectReference { /** JDWP Tag. */ public static final byte tag = JdwpID.CLASS_OBJECT_TAG; /** * Creates new ClassObjectReferenceImpl. */ - public ClassObjectReferenceImpl(VirtualMachineImpl vmImpl, JdwpClassObjectID classObjectID) { + public ClassObjectReferenceImpl(VirtualMachineImpl vmImpl, + JdwpClassObjectID classObjectID) { super("ClassObjectReference", vmImpl, classObjectID); //$NON-NLS-1$ } /** * @returns Returns Value tag. */ + @Override public byte getTag() { return tag; } - + /** - * @returns Returns the ReferenceType corresponding to this class object. - */ + * @returns Returns the ReferenceType corresponding to this class object. + */ public ReferenceType reflectedType() { initJdwpRequest(); try { - JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.COR_REFLECTED_TYPE, this); + JdwpReplyPacket replyPacket = requestVM( + JdwpCommandPacket.COR_REFLECTED_TYPE, this); defaultReplyErrorHandler(replyPacket.errorCode()); DataInputStream replyData = replyPacket.dataInStream(); return ReferenceTypeImpl.readWithTypeTag(this, replyData); @@ -63,11 +65,12 @@ public class ClassObjectReferenceImpl extends ObjectReferenceImpl implements Cla handledJdwpRequest(); } } - + /** * @return Reads JDWP representation and returns new instance. */ - public static ClassObjectReferenceImpl read(MirrorImpl target, DataInputStream in) throws IOException { + public static ClassObjectReferenceImpl read(MirrorImpl target, + DataInputStream in) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); JdwpClassObjectID ID = new JdwpClassObjectID(vmImpl); ID.read(in); @@ -77,7 +80,8 @@ public class ClassObjectReferenceImpl extends ObjectReferenceImpl implements Cla if (ID.isNull()) return null; - ClassObjectReferenceImpl mirror = new ClassObjectReferenceImpl(vmImpl, ID); + ClassObjectReferenceImpl mirror = new ClassObjectReferenceImpl(vmImpl, + ID); return mirror; } } |