1 11 package org.eclipse.jdi.internal; 12 13 14 import java.io.DataOutputStream ; 15 16 import org.eclipse.jdi.internal.jdwp.JdwpID; 17 18 import com.sun.jdi.Type; 19 import com.sun.jdi.VoidValue; 20 21 27 public class VoidValueImpl extends ValueImpl implements VoidValue { 28 29 public static final byte tag = JdwpID.VOID_TAG; 30 31 34 public VoidValueImpl(VirtualMachineImpl vmImpl) { 35 super("VoidValue", vmImpl); } 37 38 41 public byte getTag() { 42 return tag; 43 } 44 45 48 public Type type() { 49 return new VoidTypeImpl(virtualMachineImpl()); 50 } 51 52 56 public boolean equals(Object object) { 57 return object != null && object.getClass().equals(this.getClass()); 58 } 59 60 64 public int hashCode() { 65 return 0; 66 } 67 68 71 public void write(MirrorImpl target, DataOutputStream out) { 72 } 74 75 78 public String toString() { 79 return "(void)"; } 81 } 82 | Popular Tags |