public class MixedAlternativesCollector extends ParameterCollector
ParameterCollector
s are "LL(1)" distinguishable.
ParameterCollector.text_separator
) are tested in a loop.
The break condition of the loop is whenever the text pointer in the ULex.State
object has not advanced, i.e. none of the alternatives has matched.
Iff then there is still text left to parse, then an error message is
generated.
finalizeEvent(Event)
and finalizeTrack()
are simply distributed
over all alternatives.Modifier and Type | Field and Description |
---|---|
protected List<ParameterCollector> |
collectors |
event, msg, paramName, parser_text_separator, sourceContext, startLoc, state, text_separator, vox
Constructor and Description |
---|
MixedAlternativesCollector(MuLiMessageReceiver<XMLDocumentIdentifier> msg,
String paramName) |
Modifier and Type | Method and Description |
---|---|
void |
finalizeEvent(Event e)
Must be specialized for parsing the parameter values for one
single event, but may never be called directly.
|
void |
finalizeTrack()
Must be specialized for finalzing the parsing process of a whole
voice, but may never be called directly.
|
void |
parseEvent(Event ev,
ULex.State state)
Must be specialized for parsing the parameter values for one
single event, but may never be called directly.
|
MixedAlternativesCollector |
with(ParameterCollector p) |
error, findLocation, parseVoice, setSourceContext, warning
protected List<ParameterCollector> collectors
public MixedAlternativesCollector(MuLiMessageReceiver<XMLDocumentIdentifier> msg, String paramName)
public MixedAlternativesCollector with(ParameterCollector p)
public void parseEvent(Event ev, ULex.State state)
ParameterCollector
parseEvent
in class ParameterCollector
ev
- the event to processstate
- the input datapublic void finalizeEvent(Event e)
ParameterCollector
finalizeEvent
in class ParameterCollector
public void finalizeTrack()
ParameterCollector
finalizeTrack
in class ParameterCollector