Class DirectiveAlign

    • Nested Class Summary

    • 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 java.lang.Object

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

      • alignment

        protected final int alignment
      • alignmentInBytes

        protected final int alignmentInBytes
      • fillWith

        protected final int fillWith
    • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Directive