Class MemoryRange
java.lang.Object
com.ibm.j9ddr.corereaders.memory.BaseMemoryRange
com.ibm.j9ddr.corereaders.memory.MemoryRange
- All Implemented Interfaces:
IMemoryRange, Comparable<IMemoryRange>
Simple memory range class.
-
Field Summary
Fields declared in class BaseMemoryRange
baseAddress, size -
Constructor Summary
ConstructorsConstructorDescriptionMemoryRange(IAddressSpace addressSpace, long baseAddress, long size, String name) MemoryRange(IAddressSpace addressSpace, IMemoryRange range, String name) Constructor to build a memory range with the same base and size as an existing memory range, but with a different name -
Method Summary
Methods declared in class BaseMemoryRange
compareTo, contains, getBaseAddress, getSize, getTopAddress, isBacked, isSubRange, overlapsModifier and TypeMethodDescriptionintCompares this object with the specified object for order.booleancontains(long address) Checks whether an address is present in this memory rangefinal longfinal longgetSize()final longbooleanisBacked()booleanisSubRange(IMemoryRange other) booleanoverlaps(IMemoryRange other)
-
Constructor Details
-
MemoryRange
-
MemoryRange
Constructor to build a memory range with the same base and size as an existing memory range, but with a different name
-
-
Method Details
-
getAddressSpaceId
public int getAddressSpaceId()- Specified by:
getAddressSpaceIdin interfaceIMemoryRange- Returns:
- Address space ID that this range belongs to.
-
getName
- Specified by:
getNamein interfaceIMemoryRange- Returns:
- Name of this range (e.g. .text or stack), or null if range is unnamed.
-
isExecutable
public boolean isExecutable()- Specified by:
isExecutablein interfaceIMemoryRange
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceIMemoryRange
-