Class DirectiveOriginRelative


  • public final class DirectiveOriginRelative
    extends Directive
    • Nested Class Summary

    • Field Summary

      • Fields inherited from class ru.ispras.microtesk.test.template.directive.Directive

        options
    • 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 copy()
      Copies the directive.
      Directive.Kind getKind()
      Returns the directive kind.
      java.lang.String getText()
      Returns the string representation of the directive.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getText

        public java.lang.String getText()
        Description copied from class: Directive
        Returns the string representation of the directive.
        Specified by:
        getText in class Directive
        Returns:
        the directive text.
      • 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 class Directive
        Parameters:
        currentAddress - the current address.
        allocator - the memory allocator.
        Returns:
        the current address.
      • copy

        public Directive copy()
        Description copied from class: Directive
        Copies the directive.
        Overrides:
        copy in class Directive
        Returns:
        a copy of the directive.