Class DirectiveLabelGlobal

    • 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.
      java.lang.String getText()
      Returns the string representation of the directive.
      boolean isRealLabel()  
      boolean needsIndent()
      Checks whether an indentation is required when printing the directive.
      • Methods inherited from class ru.ispras.microtesk.test.template.directive.Directive

        copyAll
      • 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.
        Overrides:
        getText in class DirectiveLabel
        Returns:
        the directive text.
      • needsIndent

        public boolean needsIndent()
        Description copied from class: Directive
        Checks whether an indentation is required when printing the directive.
        Overrides:
        needsIndent in class DirectiveLabel
        Returns:
        true iff an indentation is required.
      • 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.