1 package fr.ove.openmath.jome.ctrl.amto;
2
3 import fr.ove.openmath.jome.ctrl.linear.events.LinearParserEvent;
4 import fr.ove.openmath.jome.ctrl.amto.MapsToUnary;
5
6 /***
7 * The root of the math object.
8 *
9 * @author © 1999 DIRAT Laurent
10 * @version 1.0 29/10/1999
11 */
12 public class MathExpression extends MapsToUnary {
13 /***
14 * The constructor.
15 */
16 public MathExpression() {
17 super("mathExpression", -1);
18 }
19
20 /***
21 * "Flushes" the object as a sequence of events for the building of the model
22 */
23 public void flush() {
24 LinearParserEvent linearParserEvent = new LinearParserEvent(getEventSource());
25 linearParserEvent.setToken(LinearParserEvent.START_EXPRESSION, null);
26 fireLinearParserEvent(linearParserEvent);
27
28 super.flush();
29
30 linearParserEvent = new LinearParserEvent(getEventSource());
31 linearParserEvent.setToken(LinearParserEvent.END_EXPRESSION, null);
32 fireLinearParserEvent(linearParserEvent);
33 }
34 }