Returns non-null for a CHANGES_COMMITTED
event if
an error is found in the grammar definition. The exception
serves the same functional role as the GrammarException
thrown on the commitChanges
method.
Return:
the grammar exception value.
See Also:
Recognizer#commitChanges
Constructs a RecognizerEvent
with a specified event
source, event identifier, old and new states, and optionally a
GrammarExceptionValue
for a
CHANGES_COMMITTED
event.
Parameters:
source - the recognizer that issued the event.
id - the identifier for the event type.
oldEngineState - engine state prior to this event.
newEngineState - engine state following this event.
grammarExceptionValue - non-null if an error is detected during CHANGES_COMMITTED
.