Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/BooleanValueImpl.java')
-rw-r--r--org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/BooleanValueImpl.java38
1 files changed, 24 insertions, 14 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/BooleanValueImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/BooleanValueImpl.java
index f6d537749..9febc4c31 100644
--- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/BooleanValueImpl.java
+++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/BooleanValueImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jdi.internal;
-
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
@@ -21,47 +20,55 @@ import com.sun.jdi.BooleanValue;
import com.sun.jdi.Type;
/**
- * 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 BooleanValueImpl extends PrimitiveValueImpl implements BooleanValue {
+public class BooleanValueImpl extends PrimitiveValueImpl implements
+ BooleanValue {
/** JDWP Tag. */
public static final byte tag = JdwpID.BOOLEAN_TAG;
/**
* Creates new instance.
+ * @param vmImpl the VM
+ * @param value the underlying value
*/
public BooleanValueImpl(VirtualMachineImpl vmImpl, Boolean value) {
super("BooleanValue", vmImpl, value); //$NON-NLS-1$
}
-
+
/**
* @returns tag.
*/
+ @Override
public byte getTag() {
return tag;
}
/**
* @returns type of value.
- */
+ */
+ @Override
public Type type() {
return virtualMachineImpl().getBooleanType();
}
/**
- * @returns Value.
+ * @return the underlying value
*/
public boolean value() {
return booleanValue();
}
-
+
/**
+ * @param target the target
+ * @param in the stream
* @return Reads and returns new instance.
+ * @throws IOException if the read fails
*/
- public static BooleanValueImpl read(MirrorImpl target, DataInputStream in) throws IOException {
+ public static BooleanValueImpl read(MirrorImpl target, DataInputStream in)
+ throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
boolean value = target.readBoolean("booleanValue", in); //$NON-NLS-1$
return new BooleanValueImpl(vmImpl, Boolean.valueOf(value));
@@ -70,7 +77,10 @@ public class BooleanValueImpl extends PrimitiveValueImpl implements BooleanValue
/**
* Writes value without value tag.
*/
- public void write(MirrorImpl target, DataOutputStream out) throws IOException {
- target.writeBoolean(((Boolean)fValue).booleanValue(), "booleanValue", out); //$NON-NLS-1$
+ @Override
+ public void write(MirrorImpl target, DataOutputStream out)
+ throws IOException {
+ target.writeBoolean(((Boolean) fValue).booleanValue(),
+ "booleanValue", out); //$NON-NLS-1$
}
}

Back to the top