Class DataSectionBuilder
- java.lang.Object
-
- ru.ispras.microtesk.test.template.DataSectionBuilder
-
public final class DataSectionBuilder extends java.lang.Object
TheDataSectionBuilder
class builds data sections.
-
-
Constructor Summary
Constructors Constructor Description DataSectionBuilder(BlockId blockId, DirectiveFactory directiveFactory, Section section, boolean isGlobal, boolean isSeparateFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
DataSectionBuilder
public DataSectionBuilder(BlockId blockId, DirectiveFactory directiveFactory, Section section, boolean isGlobal, boolean isSeparateFile)
-
-
Method Detail
-
setPhysicalAddress
public void setPhysicalAddress(java.math.BigInteger value)
-
isGlobal
public boolean isGlobal()
-
isSeparateFile
public boolean isSeparateFile()
-
addDirective
public void addDirective(Directive directive)
Adds the directive to the data section.- Parameters:
directive
- Directive to be added.
-
addLabel
public void addLabel(java.lang.String id, boolean global)
-
addGeneratedData
protected void addGeneratedData(DirectiveTypeInfo typeInfo, DataGenerator generator, int count, boolean align)
-
build
public DataSection build()
-
-