Class DirectiveLabel
- java.lang.Object
-
- ru.ispras.microtesk.test.template.directive.Directive
-
- ru.ispras.microtesk.test.template.directive.DirectiveLabel
-
- Direct Known Subclasses:
DirectiveLabelGlobal
,DirectiveLabelWeak
public class DirectiveLabel extends Directive
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.ispras.microtesk.test.template.directive.Directive
Directive.Kind
-
-
Field Summary
Fields Modifier and Type Field Description protected LabelValue
label
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Directive
copy()
Copies the directive.Directive.Kind
getKind()
Returns the directive kind.Label
getLabel()
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.java.lang.String
toString()
-
-
-
Field Detail
-
label
protected final LabelValue label
-
-
Method Detail
-
getLabel
public final Label getLabel()
-
isRealLabel
public boolean isRealLabel()
-
getKind
public Directive.Kind getKind()
Description copied from class:Directive
Returns the directive kind.
-
getText
public java.lang.String getText()
Description copied from class:Directive
Returns the string representation of the directive.
-
needsIndent
public boolean needsIndent()
Description copied from class:Directive
Checks whether an indentation is required when printing the directive.- Overrides:
needsIndent
in classDirective
- Returns:
true
iff an indentation is required.
-
-