Class DirectiveAlign
- java.lang.Object
-
- ru.ispras.microtesk.test.template.directive.Directive
-
- ru.ispras.microtesk.test.template.directive.DirectiveAlign
-
- Direct Known Subclasses:
DirectiveAlignByte
,DirectiveAlignPower2
public class DirectiveAlign extends Directive
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.ispras.microtesk.test.template.directive.Directive
Directive.Kind
-
-
Field Summary
Fields Modifier and Type Field Description protected int
alignment
protected int
alignmentInBytes
protected int
fillWith
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
apply(java.math.BigInteger currentAddress, MemoryAllocator allocator)
Applies the directive to the current address and the memory allocator.Directive.Kind
getKind()
Returns the directive kind.java.lang.String
getText()
Returns the string representation of the directive.java.lang.String
toString()
-
Methods inherited from class ru.ispras.microtesk.test.template.directive.Directive
copy, copyAll, needsIndent
-
-
-
-
Method Detail
-
getKind
public Directive.Kind getKind()
Description copied from class:Directive
Returns the directive kind.
-
getText
public java.lang.String getText()
Description copied from class:Directive
Returns the string representation of the directive.
-
apply
public java.math.BigInteger apply(java.math.BigInteger currentAddress, MemoryAllocator allocator)
Description copied from class:Directive
Applies the directive to the current address and the memory allocator.
-
-