Class LoaderInformation.Builder
java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.LoaderInformation.Builder
- Enclosing class:
LoaderInformation
Builder of
LoaderInformation objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the loader information object.setCompilationTimestamp(long compilationTimestamp) Set the compilation timestamp.setEndianness(Endianness endianness) Set the target endianness.setEntryPoint(long entryPoint) Set the entry point.setFlags(int flags) Set loader flags.setImageBase(long imageBase) Set the preferred image base.setImageSize(long imageSize) Set the image size.Set parser notes.setOverlayOffset(long overlayOffset) Set the overlay offset.setTargetProcessor(ProcessorType processorType) Set the target processor type.setTargetSubsystem(SubsystemType ssType) Set the target subsystem type.setVersion(String version) Set the container version.setWordSize(int wordSize) Set the target word size.
-
Constructor Details
-
Builder
public Builder()Create a loader information builder.
-
-
Method Details
-
setFlags
Set loader flags.- Parameters:
flags- a combination ofILoaderInformation.FLAG_HAS_RELOCATION,ILoaderInformation.FLAG_HAS_SYMBOLS,ILoaderInformation.FLAG_IS_RELOCATABLE,ILoaderInformation.FLAG_LIBRARY_FILE,ILoaderInformation.FLAG_OBJECT_FILE,ILoaderInformation.FLAG_PURE_CODE- Returns:
- this builder
-
setVersion
Set the container version.- Parameters:
version- optional version of this container- Returns:
- this builder
-
setTargetProcessor
Set the target processor type.- Parameters:
processorType- target processor- Returns:
- this builder
-
setTargetSubsystem
Set the target subsystem type.- Parameters:
ssType- target subsystem- Returns:
- this builder
-
setEndianness
Set the target endianness.- Parameters:
endianness- byte ordering- Returns:
- this builder
-
setWordSize
Set the target word size.- Parameters:
wordSize- word size in bits- Returns:
- this builder
-
setCompilationTimestamp
Set the compilation timestamp.- Parameters:
compilationTimestamp- timestamp in milliseconds since the unix epoch- Returns:
- this builder
-
setImageBase
Set the preferred image base.- Parameters:
imageBase- image base- Returns:
- this builder
-
setImageSize
Set the image size.- Parameters:
imageSize- image size in bytes- Returns:
- this builder
-
setEntryPoint
Set the entry point.- Parameters:
entryPoint- entry-point RVA- Returns:
- this builder
-
setOverlayOffset
Set the overlay offset.- Parameters:
overlayOffset- overlay file offset- Returns:
- this builder
-
setNotes
Set parser notes.- Parameters:
notes- optional notes- Returns:
- this builder
-
build
Build the loader information object.- Returns:
- the built object
-