Class DataDirectiveFactory
- java.lang.Object
-
- ru.ispras.microtesk.test.template.DataDirectiveFactory
-
public final class DataDirectiveFactory extends java.lang.Object
TheDataDirectiveFactory
class is a configurable factory for creating data directives.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataDirectiveFactory.Builder
static class
DataDirectiveFactory.TypeInfo
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataDirectiveFactory.TypeInfo
findTypeInfo(int typeSizeInBits)
DataDirectiveFactory.TypeInfo
findTypeInfo(java.lang.String typeName)
int
getMaxTypeBitSize()
DataDirective
newAlign(java.math.BigInteger alignment, java.math.BigInteger alignmentInBytes)
DataDirective
newAsciiStrings(boolean zeroTerm, java.lang.String[] strings)
DataDirective
newComment(java.lang.String text)
DataDirective
newData(java.lang.String typeName, java.math.BigInteger[] values)
DataDirective
newData(java.lang.String typeName, ru.ispras.microtesk.test.template.DataGenerator generator, int count)
DataDirective
newData(DataDirectiveFactory.TypeInfo typeInfo, java.math.BigInteger[] values)
DataDirective
newData(DataDirectiveFactory.TypeInfo typeInfo, ru.ispras.microtesk.test.template.DataGenerator generator, int count)
DataDirective
newDataValues(java.lang.String typeName, java.util.List<Value> values)
DataDirective
newDataValues(DataDirectiveFactory.TypeInfo typeInfo, java.util.List<Value> values)
DataDirective
newGlobalLabel(LabelValue label)
DataDirective
newLabel(Section section, LabelValue label)
DataDirective
newOrigin(java.math.BigInteger origin)
DataDirective
newOriginRelative(java.math.BigInteger delta)
DataDirective
newSpace(int length)
DataDirective
newText(java.lang.String text)
-
-
-
Method Detail
-
newText
public DataDirective newText(java.lang.String text)
-
newComment
public DataDirective newComment(java.lang.String text)
-
newLabel
public DataDirective newLabel(Section section, LabelValue label)
-
newGlobalLabel
public DataDirective newGlobalLabel(LabelValue label)
-
newOrigin
public DataDirective newOrigin(java.math.BigInteger origin)
-
newOriginRelative
public DataDirective newOriginRelative(java.math.BigInteger delta)
-
newAlign
public DataDirective newAlign(java.math.BigInteger alignment, java.math.BigInteger alignmentInBytes)
-
newSpace
public DataDirective newSpace(int length)
-
newAsciiStrings
public DataDirective newAsciiStrings(boolean zeroTerm, java.lang.String[] strings)
-
newData
public DataDirective newData(java.lang.String typeName, java.math.BigInteger[] values)
-
newData
public DataDirective newData(DataDirectiveFactory.TypeInfo typeInfo, java.math.BigInteger[] values)
-
newData
public DataDirective newData(java.lang.String typeName, ru.ispras.microtesk.test.template.DataGenerator generator, int count)
-
newData
public DataDirective newData(DataDirectiveFactory.TypeInfo typeInfo, ru.ispras.microtesk.test.template.DataGenerator generator, int count)
-
newDataValues
public DataDirective newDataValues(java.lang.String typeName, java.util.List<Value> values)
-
newDataValues
public DataDirective newDataValues(DataDirectiveFactory.TypeInfo typeInfo, java.util.List<Value> values)
-
getMaxTypeBitSize
public int getMaxTypeBitSize()
-
findTypeInfo
public DataDirectiveFactory.TypeInfo findTypeInfo(java.lang.String typeName)
-
findTypeInfo
public DataDirectiveFactory.TypeInfo findTypeInfo(int typeSizeInBits)
-
-