KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > core > memory > MemoryByte


1 /*******************************************************************************
2  * Copyright (c) 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.core.memory;
12
13
14 /**
15  * Represents a byte in the meomry block.
16  * MemoryByte allows debug adapters to specify attributes for each of the
17  * individual byte from the memory block
18  * @since 3.0
19  */

20 public abstract class MemoryByte {
21     
22     public static final byte READONLY = 0x01; // Attribute to indicate the the byte is read-only
23
public static final byte VALID = 0x02; // Attribute to indicate that the byte is valid
24
public static final byte CHANGED = 0x04; // Attribute to indicate that the byte has changed
25
public static final byte UNCHANGED = 0x08; // Attribute to indicate that the byte is unchanged
26
// The changed and unchanged attribute will only
27
// take effect if IExtendedMemoryBlock.isMemoryChangesManaged
28
// returns true.
29

30     // value of the byte
31
public byte value;
32     
33     // Flags for specifying the attributes
34
// To specify VALID: flags |= MemoryByte.VALID;
35
// To specify READONLY: flags |= MemoryByte.READONLY;
36
public byte flags;
37 }
38
Popular Tags