Package eu.bandm.tscore.base
Class GroupCollector.GroupEvent
java.lang.Object
eu.bandm.tscore.base.GroupCollector.GroupEvent
- Enclosing class:
- GroupCollector
Represents the translation of a group start, group end or singleton additon
parameter text.
This text is found in the parameter track of a particular event and this instance
is then stored (with that event as a key) in
GroupCollector.groupEvents
.
These events are only temporary and local and translated by the
subsequent call to GroupCollector.reify(MessageReceiver,Iterable,Multimap)
into event sets.-
Field Summary
Modifier and TypeFieldDescriptionThe text parsed additionally to the closing/opening parenthesis(package private) EventSet
Result.(package private) final GroupCollector.Kind
Whether start, end, or singleton(package private) final Integer
Continguous numeration of all constructed GroupEventsThe name of the group, as parsed from the source text.Identifying number, as parsed from the source text.The parenthesis text(package private) GroupCollector.GroupEvent
Stack link for all groups with same name.(package private) GroupCollector.GroupEvent
Stack link for all groups with same parenthesis. -
Constructor Summary
ConstructorDescriptionGroupEvent
(GroupCollector.Kind kind, @Opt String parenthesis, @Opt String name, @Opt Integer number, String additionalText) Constructor which sets all parameters. -
Method Summary
Modifier and TypeMethodDescription(package private) String
getFullGroupName
(Map<String, String> close2open) Deliver the complete name of the collected group.(package private) boolean
Whether only the (closing) parenthesis makes up the input source text.
-
Field Details
-
kind
Whether start, end, or singleton -
parenthesis
The parenthesis text -
number
Identifying number, as parsed from the source text. -
name
The name of the group, as parsed from the source text. -
additionalText
The text parsed additionally to the closing/opening parenthesis -
localLevel
Continguous numeration of all constructed GroupEvents -
predByParenthesis
GroupCollector.GroupEvent predByParenthesisStack link for all groups with same parenthesis. Used inGroupCollector.reify(MessageReceiver,Iterable,Multimap)
. -
predByName
GroupCollector.GroupEvent predByNameStack link for all groups with same name. Used inGroupCollector.reify(MessageReceiver,Iterable,Multimap)
. -
eventSet
EventSet eventSetResult. Used inGroupCollector.reify(MessageReceiver,Iterable,Multimap)
.
-
-
Constructor Details
-
Method Details
-
getFullGroupName
Deliver the complete name of the collected group. This is the concatenation of opening paren symbol (if any), explicit textual name and number (if any and != 0). -
parenthesisOnly
boolean parenthesisOnly()Whether only the (closing) parenthesis makes up the input source text.
-