Package eu.bandm.tools.d2d2.infra
Class DiagnosisMarkUp
java.lang.Object
eu.bandm.tools.d2d2.infra.DiagnosisMarkUp
- Direct Known Subclasses:
DiagnosisMarkUp.NoMarkup
,DiagnosisMarkUp.VT100
Defines the string constants for presenting the parser situation to the
user on a given type of terminal.
The string contants printed are needed to visually mark-up (for each stack frame printed) (a) the tag currently selected and (b) the set of all possible follower tags. (a) and (b) may apply to the same tag. The strings define the switching on and switching off of the three possible combinations.
The two non-abstract methods are fall-back implementations and simply concatenate the two dedicated strings.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A variant which inserts no single marku-up string in the printed regular expression.static class
Implementation of DiagnosisMarkUp for the widespread "VT100" terminal codes. -
Field Summary
Modifier and TypeFieldDescriptionstatic final DiagnosisMarkUp.VT100
Constant instance to be used as method parameter for activating the vt 100 behaviour. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
End the visual mark-up for the currently active tag.End the visual mark-up for an active tag which is also a possible follower.abstract String
End the visual mark-up for all possible follower tags.abstract String
The visual mark-up for the currently active tag.The visual mark-up for an active tag which is also a possible follower.abstract String
The visual mark-up for all possible follower tags.
-
Field Details
-
on_VT100
Constant instance to be used as method parameter for activating the vt 100 behaviour.
-
-
Constructor Details
-
DiagnosisMarkUp
public DiagnosisMarkUp()
-
-
Method Details
-
open_actual
The visual mark-up for the currently active tag. -
open_possible
The visual mark-up for all possible follower tags. -
open_actual_and_possible
The visual mark-up for an active tag which is also a possible follower. -
close_actual
End the visual mark-up for the currently active tag. -
close_possible
End the visual mark-up for all possible follower tags. -
close_actual_and_possible
End the visual mark-up for an active tag which is also a possible follower.
-