java.lang.Object
com.ibm.dtfj.javacore.builder.javacore.AbstractBuilderComponent
com.ibm.dtfj.javacore.builder.javacore.ImageAddressSpaceBuilder
- All Implemented Interfaces:
IImageAddressSpaceBuilder
public class ImageAddressSpaceBuilder
extends AbstractBuilderComponent
implements IImageAddressSpaceBuilder
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddImageSection
(String name, long base, long size) Create a new image section with the given name, base address and size and add it to the list in the ImageAddressSpace.To associate a new image process to the image address space being built by this image address space factory, use this interface to create a new image process factory for the aforementioned image process.Returns the current image process builder (factory) associated with the image address space factory.getImageProcessBuilder
(String builderID) In multiple image process scenarios, each image process is associated with it's own image process factory, and the latter are distinguished by unique id values.Methods declared in class com.ibm.dtfj.javacore.builder.javacore.AbstractBuilderComponent
getBuilderContainer, getID
-
Constructor Details
-
ImageAddressSpaceBuilder
- Parameters:
image
- valid com.ibm.dtfj.javacore.image.JCImage associated with this image address factory. Must not be null.id
- unique id for this factory. Must not be null.- Throws:
JCInvalidArgumentsException
- if image is null
-
-
Method Details
-
getCurrentImageProcessBuilder
Description copied from interface:IImageAddressSpaceBuilder
Returns the current image process builder (factory) associated with the image address space factory. Usually, there is only one image process, thus one image process factory. In the event that multiple image processes exist for one image address space, the current image process factory may be the last image process factory generated by the image address space factory.- Specified by:
getCurrentImageProcessBuilder
in interfaceIImageAddressSpaceBuilder
- Returns:
- current image process builder. Must not be null.
- See Also:
-
generateImageProcessBuilder
Description copied from interface:IImageAddressSpaceBuilder
To associate a new image process to the image address space being built by this image address space factory, use this interface to create a new image process factory for the aforementioned image process. At least one image process must exist for an image address space, therefore consequently, at least one image process factory must be created for each image address space factory.- Specified by:
generateImageProcessBuilder
in interfaceIImageAddressSpaceBuilder
- Parameters:
id
- unique id for the new image address space factory- Returns:
- generated image process factory. must not be null.
- Throws:
BuilderFailureException
- if image process factory not generated.- See Also:
-
getImageProcessBuilder
Description copied from interface:IImageAddressSpaceBuilder
In multiple image process scenarios, each image process is associated with it's own image process factory, and the latter are distinguished by unique id values.- Specified by:
getImageProcessBuilder
in interfaceIImageAddressSpaceBuilder
- Parameters:
builderID
- unique id of the image process factory- Returns:
- found image process factory, or null if not found
- See Also:
-
addImageSection
Description copied from interface:IImageAddressSpaceBuilder
Create a new image section with the given name, base address and size and add it to the list in the ImageAddressSpace.- Specified by:
addImageSection
in interfaceIImageAddressSpaceBuilder
-