Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-01-09 13:12:58 +0000
committerAndrey Loskutov2017-01-13 20:56:39 +0000
commitebb2566c95427e5c7cffd5e27f1e910b0a187b17 (patch)
treef9b87db9c4ccf476dfb8c8d4b5fcfcfd3f871bbb /org.eclipse.debug.core/core/org/eclipse/debug/core/model/MemoryByte.java
parent1c1d17b82a223fb8fcc69b4883a71b8744899ccb (diff)
downloadeclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.tar.gz
eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.tar.xz
eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.zip
Also enabled "cleanup whitespace on save" actions for debug.ui and debug.tests bundles. Change-Id: I755b879ab1d49144a1bec3f4318dbb8b29521bb3 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.debug.core/core/org/eclipse/debug/core/model/MemoryByte.java')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/core/model/MemoryByte.java102
1 files changed, 51 insertions, 51 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/model/MemoryByte.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/model/MemoryByte.java
index 6498ec379..7622e8fc9 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/core/model/MemoryByte.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/model/MemoryByte.java
@@ -16,60 +16,60 @@ package org.eclipse.debug.core.model;
* attributes indicating if the byte is read-only, valid, or if its value has
* changed.
* <p>
- * Clients may instantiate this class. Clients may subclass this class to
+ * Clients may instantiate this class. Clients may subclass this class to
* add other attributes to a memory byte, as required.
* </p>
* @since 3.1
* @see org.eclipse.debug.core.model.IMemoryBlockExtension
*/
public class MemoryByte {
-
+
/**
* Bit mask used to indicate a byte is writable.
*/
public static final byte WRITABLE = 0x01;
-
+
/**
* Bit mask used to indicate a byte is readable.
* A memory byte is readable when its value and attributes are retrievable.
* Otherwise, a byte is considered non-readable.
*/
public static final byte READABLE = 0x02;
-
+
/**
* Bit mask used to indicate a byte has changed since the last
* suspend event.
- *
+ *
* @see org.eclipse.debug.core.DebugEvent#SUSPEND
*/
public static final byte CHANGED = 0x04;
-
+
/**
* Bit mask used to indicate a memory byte has history to
* determine if its value has changed. When a memory byte's
* history is unknown, the change state has no meaning.
*/
public static final byte HISTORY_KNOWN = 0x08;
-
+
/**
* Bit mask used to indicate a this byte of memory
* is big endian. If this byte of memory is little endian,
* turn this bit mask to off.
*/
public static final byte BIG_ENDIAN = 0x10;
-
+
/**
* Bit mask used to indicate that the endianess of this byte
* of memory is known. When a memory byte's endianess is
- * unknown, the endianess of this byte has no meaning.
+ * unknown, the endianess of this byte has no meaning.
*/
public static final byte ENDIANESS_KNOWN = 0x20;
-
+
/**
* Value of this byte.
*/
protected byte value;
-
+
/**
* Attribute flags.
* <p>
@@ -78,7 +78,7 @@ public class MemoryByte {
* </p>
*/
protected byte flags;
-
+
/**
* Constructs a readable, writable memory byte without a change history,
* and a value of 0. The byte's endianess is known and is little endian
@@ -87,33 +87,33 @@ public class MemoryByte {
public MemoryByte() {
this((byte)0, (byte)(WRITABLE | READABLE | ENDIANESS_KNOWN));
}
-
+
/**
* Constructs a readable, writable memory byte without a change history,
* with the given value. The byte's endianess is known and is little endian
- * by default.
- *
+ * by default.
+ *
* @param byteValue value of this memory byte
- *
+ *
*/
public MemoryByte(byte byteValue) {
this(byteValue, (byte)(WRITABLE | READABLE | ENDIANESS_KNOWN));
}
-
+
/**
* Constructs a memory byte with the given value and attributes.
- *
+ *
* @param byteValue value of this memory byte
- * @param byteFlags attributes of the byte specified as a bit mask
+ * @param byteFlags attributes of the byte specified as a bit mask
*/
- public MemoryByte(byte byteValue, byte byteFlags) {
+ public MemoryByte(byte byteValue, byte byteFlags) {
value = byteValue;
flags = byteFlags;
}
/**
* Returns this memory byte's attribute as a bit mask.
- *
+ *
* @return this memory byte's attribute as a bit mask
*/
public byte getFlags() {
@@ -121,7 +121,7 @@ public class MemoryByte {
}
/**
* Sets this memory byte's attributes based on the given bit mask.
- *
+ *
* @param flags bit mask of attributes
*/
public void setFlags(byte flags) {
@@ -130,27 +130,27 @@ public class MemoryByte {
/**
* Returns the value of this memory byte.
- *
+ *
* @return the value of this memory byte
*/
public byte getValue() {
return value;
}
-
+
/**
* Sets the value of this memory byte.
- *
+ *
* @param value the new value of this memory byte
*/
public void setValue(byte value) {
this.value = value;
}
-
+
/**
* Sets whether this memory byte is readable. A memory byte
* is considered readable when its value and attributes are
* retrievable.
- *
+ *
* @param readable whether this memory byte is readable
*/
public void setReadable(boolean readable) {
@@ -158,21 +158,21 @@ public class MemoryByte {
if (!readable)
flags ^= MemoryByte.READABLE;
}
-
+
/**
* Returns whether this memory byte is readable. A memory byte
* is considered readable when its value and attributes are
* retrievable.
- *
+ *
* @return whether this memory byte is readable
*/
public boolean isReadable() {
return ((flags & MemoryByte.READABLE) == MemoryByte.READABLE);
}
-
+
/**
* Sets whether this memory byte is writable.
- *
+ *
* @param writable whether this memory byte is writable.
*/
public void setWritable(boolean writable) {
@@ -180,19 +180,19 @@ public class MemoryByte {
if (!writable)
flags ^= MemoryByte.WRITABLE;
}
-
+
/**
* Returns whether this memory byte is writable.
- *
+ *
* @return whether this memory byte is writable
*/
public boolean isWritable() {
return ((flags & MemoryByte.WRITABLE) == MemoryByte.WRITABLE);
}
-
+
/**
* Sets whether this memory byte has changed.
- *
+ *
* @param changed whether this memory byte has changed
*/
public void setChanged(boolean changed) {
@@ -200,20 +200,20 @@ public class MemoryByte {
if (!changed)
flags ^= MemoryByte.CHANGED;
}
-
+
/**
* Returns whether this memory byte has changed.
- *
+ *
* @return whether this memory byte has changed
*/
public boolean isChanged() {
return ((flags & MemoryByte.CHANGED) == MemoryByte.CHANGED);
}
-
+
/**
* Sets whether the history of this byte is known. When history
* is unknown, the change state of a memory byte has no meaning.
- *
+ *
* @param known whether the change state of this byte is known
*/
public void setHistoryKnown(boolean known) {
@@ -221,20 +221,20 @@ public class MemoryByte {
if (!known)
flags ^= MemoryByte.HISTORY_KNOWN;
}
-
+
/**
* Returns whether the history of this byte is known. When history
* is unknown, the change state of a memory byte has no meaning.
- *
+ *
* @return whether the change state of this byte is known
*/
public boolean isHistoryKnown() {
return ((flags & MemoryByte.HISTORY_KNOWN) == MemoryByte.HISTORY_KNOWN);
}
-
+
/**
* Sets whether this byte of memory is big endian.
- *
+ *
* @param isBigEndian whether the byte of memory is big endian.
*/
public void setBigEndian(boolean isBigEndian)
@@ -243,22 +243,22 @@ public class MemoryByte {
if (!isBigEndian)
flags ^= MemoryByte.BIG_ENDIAN;
}
-
+
/**
* Returns whether this byte of memory is big endian.
- *
+ *
* @return whether the byte of memory is big endian.
*/
public boolean isBigEndian()
{
return ((flags & MemoryByte.BIG_ENDIAN) == MemoryByte.BIG_ENDIAN);
}
-
+
/**
* Sets whether the endianess of this byte of memory is known.
* If the endianess is unknown, the endianess of this byte
- * has no meaning.
- *
+ * has no meaning.
+ *
* @param isEndianessKnown whether the endianess of this byte is known.
*/
public void setEndianessKnown(boolean isEndianessKnown)
@@ -267,17 +267,17 @@ public class MemoryByte {
if (!isEndianessKnown)
flags ^= MemoryByte.ENDIANESS_KNOWN;
}
-
+
/**
* Returns whether the endianess of this byte of memory is known.
* If the endianess is unknown, the endianess of this byte
* has no meaning.
- *
+ *
* @return whether the endianess of this byte of memory is known.
*/
public boolean isEndianessKnown()
{
return ((flags & MemoryByte.ENDIANESS_KNOWN) == MemoryByte.ENDIANESS_KNOWN);
}
-
+
}

Back to the top