Class DirectiveFactory
- java.lang.Object
-
- ru.ispras.microtesk.test.template.directive.DirectiveFactory
-
public final class DirectiveFactory extends java.lang.Object
DirectiveFactory
implements a configurable factory for creating data directives.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DirectiveFactory.Builder
class
DirectiveFactory.DataValueBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectiveTypeInfo
findTypeInfo(int typeSizeInBits)
DirectiveTypeInfo
findTypeInfo(int typeSizeInBits, boolean align)
DirectiveTypeInfo
findTypeInfo(java.lang.String typeName)
DirectiveFactory.DataValueBuilder
getDataValueBuilder(int typeBitSize, boolean align)
DirectiveFactory.DataValueBuilder
getDataValueBuilder(java.lang.String typeName, boolean align)
int
getMaxTypeBitSize()
Directive
newAlign(int alignment, int alignmentInBytes, int fillWith)
Directive
newAlignByte(int alignment, int fillWith)
Directive
newAlignPower2(int alignment, int alignmentInBytes, int fillWith)
Directive
newComment(java.lang.String text)
Directive
newData(java.lang.String typeName, java.math.BigInteger[] values, boolean align)
Directive
newData(java.lang.String typeName, DataGenerator generator, int count, boolean align)
Directive
newData(DirectiveTypeInfo typeInfo, java.math.BigInteger[] values, boolean align)
Directive
newData(DirectiveTypeInfo typeInfo, DataGenerator generator, int count, boolean align)
Directive
newDataValues(java.lang.String typeName, java.util.List<Value> values, boolean align)
Directive
newDataValues(DirectiveTypeInfo typeInfo, java.util.List<Value> values, boolean align)
Directive
newGlobalLabel(LabelValue label)
Directive
newLabel(LabelValue label)
Directive
newOption(java.lang.String option)
Directive
newOrigin(java.math.BigInteger origin)
Directive
newOriginAbsolute(java.math.BigInteger origin)
Directive
newOriginRelative(java.math.BigInteger delta)
Directive
newOriginText(java.math.BigInteger origin, java.lang.String text)
Directive
newSpace(java.lang.String text, int data, int length)
Directive
newStrings(java.lang.String text, boolean zeroTerm, java.lang.String[] strings)
Directive
newText(java.lang.String text)
Directive
newWeakLabel(LabelValue label)
-
-
-
Method Detail
-
getDataValueBuilder
public DirectiveFactory.DataValueBuilder getDataValueBuilder(java.lang.String typeName, boolean align)
-
getDataValueBuilder
public DirectiveFactory.DataValueBuilder getDataValueBuilder(int typeBitSize, boolean align)
-
newText
public Directive newText(java.lang.String text)
-
newComment
public Directive newComment(java.lang.String text)
-
newLabel
public Directive newLabel(LabelValue label)
-
newGlobalLabel
public Directive newGlobalLabel(LabelValue label)
-
newWeakLabel
public Directive newWeakLabel(LabelValue label)
-
newOption
public Directive newOption(java.lang.String option)
-
newOrigin
public Directive newOrigin(java.math.BigInteger origin)
-
newOriginAbsolute
public Directive newOriginAbsolute(java.math.BigInteger origin)
-
newOriginRelative
public Directive newOriginRelative(java.math.BigInteger delta)
-
newOriginText
public Directive newOriginText(java.math.BigInteger origin, java.lang.String text)
-
newAlign
public Directive newAlign(int alignment, int alignmentInBytes, int fillWith)
-
newAlignByte
public Directive newAlignByte(int alignment, int fillWith)
-
newAlignPower2
public Directive newAlignPower2(int alignment, int alignmentInBytes, int fillWith)
-
newSpace
public Directive newSpace(java.lang.String text, int data, int length)
-
newStrings
public Directive newStrings(java.lang.String text, boolean zeroTerm, java.lang.String[] strings)
-
newData
public Directive newData(java.lang.String typeName, java.math.BigInteger[] values, boolean align)
-
newData
public Directive newData(DirectiveTypeInfo typeInfo, java.math.BigInteger[] values, boolean align)
-
newData
public Directive newData(java.lang.String typeName, DataGenerator generator, int count, boolean align)
-
newData
public Directive newData(DirectiveTypeInfo typeInfo, DataGenerator generator, int count, boolean align)
-
newDataValues
public Directive newDataValues(java.lang.String typeName, java.util.List<Value> values, boolean align)
-
newDataValues
public Directive newDataValues(DirectiveTypeInfo typeInfo, java.util.List<Value> values, boolean align)
-
getMaxTypeBitSize
public int getMaxTypeBitSize()
-
findTypeInfo
public DirectiveTypeInfo findTypeInfo(java.lang.String typeName)
-
findTypeInfo
public DirectiveTypeInfo findTypeInfo(int typeSizeInBits)
-
findTypeInfo
public DirectiveTypeInfo findTypeInfo(int typeSizeInBits, boolean align)
-
-