Class DirectiveLabelGlobal
- java.lang.Object
-
- ru.ispras.microtesk.test.template.directive.Directive
-
- ru.ispras.microtesk.test.template.directive.DirectiveLabel
-
- ru.ispras.microtesk.test.template.directive.DirectiveLabelGlobal
-
public final class DirectiveLabelGlobal extends DirectiveLabel
-
-
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.DirectiveLabel
label
-
-
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.DirectiveLabel
getKind, getLabel, toString
-
-
-
-
Method Detail
-
isRealLabel
public boolean isRealLabel()
- Overrides:
isRealLabel
in classDirectiveLabel
-
getText
public java.lang.String getText()
Description copied from class:Directive
Returns the string representation of the directive.- Overrides:
getText
in classDirectiveLabel
- 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 classDirectiveLabel
- 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.
-
copy
public Directive copy()
Description copied from class:Directive
Copies the directive.- Overrides:
copy
in classDirectiveLabel
- Returns:
- a copy of the directive.
-
-