Class DirectiveOriginAbsolute
- java.lang.Object
-
- ru.ispras.microtesk.test.template.directive.Directive
-
- ru.ispras.microtesk.test.template.directive.DirectiveOrigin
-
- ru.ispras.microtesk.test.template.directive.DirectiveOriginAbsolute
-
public final class DirectiveOriginAbsolute extends DirectiveOrigin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.ispras.microtesk.test.template.directive.Directive
Directive.Kind
-
-
Field Summary
-
Fields inherited from class ru.ispras.microtesk.test.template.directive.DirectiveOrigin
origin
-
-
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.-
Methods inherited from class ru.ispras.microtesk.test.template.directive.DirectiveOrigin
getText
-
Methods inherited from class ru.ispras.microtesk.test.template.directive.Directive
copy, copyAll, needsIndent, toString
-
-
-
-
Method Detail
-
getKind
public Directive.Kind getKind()
Description copied from class:Directive
Returns the directive kind.- Overrides:
getKind
in classDirectiveOrigin
- Returns:
- the directive kind.
-
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.- Overrides:
apply
in classDirectiveOrigin
- Parameters:
currentAddress
- the current address.allocator
- the memory allocator.- Returns:
- the current address.
-
-