public final class DataSectionBuilder
extends java.lang.Object
DataSectionBuilder
class builds data sections.Constructor and Description |
---|
DataSectionBuilder(BlockId blockId,
DirectiveFactory directiveFactory,
Section section,
boolean isGlobal,
boolean isSeparateFile) |
Modifier and Type | Method and Description |
---|---|
void |
addDirective(Directive directive)
Adds the directive to the data section.
|
protected void |
addGeneratedData(DirectiveTypeInfo typeInfo,
DataGenerator generator,
int count,
boolean align) |
void |
addLabel(java.lang.String id,
boolean global) |
DataSection |
build() |
boolean |
isGlobal() |
boolean |
isSeparateFile() |
void |
setPhysicalAddress(java.math.BigInteger value) |
public DataSectionBuilder(BlockId blockId, DirectiveFactory directiveFactory, Section section, boolean isGlobal, boolean isSeparateFile)
public void setPhysicalAddress(java.math.BigInteger value)
public boolean isGlobal()
public boolean isSeparateFile()
public void addDirective(Directive directive)
directive
- Directive to be added.public void addLabel(java.lang.String id, boolean global)
protected void addGeneratedData(DirectiveTypeInfo typeInfo, DataGenerator generator, int count, boolean align)
public DataSection build()