java.lang.Object
com.ibm.j9ddr.StructureReader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static enum
static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRead a stream in the J9DDRStructStore superset format.Initialize this reader from the supplied data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCompatibilityConstants
(InputStream inputStream) void
addStructures
(ImageInputStream ddrStream) Add to the existing set of structures already contained in this reader.byte
boolean
getBuildFlagValue
(String structureName, String constantName, boolean defaultValue) getConstants
(String structureName) long
getConstantValue
(String structureName, String constantName, long defaultValue) Get a map of the fields for a particular structure and their offsets.Get the package name that should be used including the version informationlong
Get the package version number, derived from fields of DDRAlgorithmVersions in the blob.byte[]
getPointerClassBytes
(String binaryName) byte
byte
byte[]
getStructureClassBytes
(String binaryName) Get a list of the structures defined by this readerint
getStructureSizeOf
(String structureName) boolean
hasStructure
(String name) Test to see if a structure has been read in and hence availableloadAliasMap
(long version) void
loadAuxFieldInfo
(InputStream stream) static String
simplifyType
(String type)
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
J9_STRUCTURES_EYECATCHER
public static final int J9_STRUCTURES_EYECATCHER- See Also:
-
STRUCTURE_CONSTRUCTOR_SIGNATURE
-
BIT_FIELD_FORMAT_LITTLE_ENDIAN
public static final byte BIT_FIELD_FORMAT_LITTLE_ENDIAN- See Also:
-
BIT_FIELD_FORMAT_BIG_ENDIAN
public static final byte BIT_FIELD_FORMAT_BIG_ENDIAN- See Also:
-
BIT_FIELD_CELL_SIZE
public static final int BIT_FIELD_CELL_SIZE- See Also:
-
DDR_VERSIONED_PACKAGE_PREFIX
- See Also:
-
-
Constructor Details
-
StructureReader
Initialize this reader from the supplied data. The ImageInputStream must be validated and already be positioned to point to the first byte of the DDR Structure Data. The ByteOrder of the ImageInputStream will be adjusted to match the file being read. (The DDR Structure data is written in the ByteOrder of the platform that created the core file.)- Throws:
IOException
-
StructureReader
Read a stream in the J9DDRStructStore superset format.- Throws:
IOException
-
-
Method Details
-
getHeader
-
getBasePackage
-
getPackageVersion
public long getPackageVersion()Get the package version number, derived from fields of DDRAlgorithmVersions in the blob.- Returns:
- the package version number
-
getPackageName
Get the package name that should be used including the version information- Parameters:
type
-- Returns:
-
addCompatibilityConstants
- Throws:
IOException
-
loadAliasMap
- Throws:
IOException
-
loadAuxFieldInfo
- Throws:
IOException
-
getStructureNames
Get a list of the structures defined by this reader- Returns:
- Set interface for the structure names
-
hasStructure
Test to see if a structure has been read in and hence available- Parameters:
name
- name of the structure to look for- Returns:
- true if the structure exists, false if not
-
getStructureSizeOf
-
getStructures
-
getFields
Get a map of the fields for a particular structure and their offsets.- Parameters:
structureName
- name of the structure- Returns:
- map of the fields as FieldName, Offset pair
-
getConstants
-
addStructures
Add to the existing set of structures already contained in this reader. Note that this will replace any definitions already contained within the reader.- Parameters:
ddrStream
- stream to add the structures from- Throws:
IOException
-
getStructureClassBytes
- Throws:
ClassNotFoundException
-
getPointerClassBytes
- Throws:
ClassNotFoundException
-
getConstantValue
-
getBuildFlagValue
-
getSizeOfBool
public byte getSizeOfBool() -
getSizeOfUDATA
public byte getSizeOfUDATA() -
getBitFieldFormat
public byte getBitFieldFormat() -
simplifyType
-