|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.inria.openmath.omapi.ParserAdapter
fr.ove.openmath.jome.ctrl.om.OMTreeParserHandler
The handler for the OpenMath parser.
| Constructor Summary | |
OMTreeParserHandler()
The constructor. |
|
| Method Summary | |
void |
endApplication()
Receives notification of the end of an application element. |
void |
endAttributePairs()
Receives notification of the end of an attribute-pairs element. |
void |
endAttribution()
Receives notification of the end of an attribution element. |
void |
endBind()
Receives notification of the beginning of a Bind element. |
void |
endBVars()
Receives notification of the beginning of a BVars element. |
void |
endError()
Receives notification of the end of an error element. |
void |
endObject()
Receives notification of the end of an object element. |
void |
endParse()
Receives notification of the end of parse. |
void |
readByteArray(byte[] value)
Receives notification of a byteArray element. |
void |
readComment(java.lang.String value)
Receives notification of a comment element. |
void |
readFloat(double value)
Receives notification of a floating-point number element. |
void |
readInteger(fr.inria.openmath.omapi.BigInt value)
Receives notification of an Integer element. |
void |
readString(java.lang.String value)
Receives notification of a string element. |
void |
readSymbol(fr.inria.openmath.omapi.Symbol value)
Receives notification of a symbol element. |
void |
readVariable(java.lang.String name)
Receives notification of a variable element. |
void |
setEventSource(LinearParserEventSource eventSource)
Sets the event source. |
void |
setLocator(fr.inria.openmath.omapi.Locator locator)
Receives a Locator for parse events. |
void |
startApplication()
Receives notification of the beginning of a application element. |
void |
startAttributePairs()
Receives notification of the beginning of an attribute-pairs element. |
void |
startAttribution()
Receives notification of the beginning of a attribution element. |
void |
startBind()
Receives notification of the beginning of a Bind element. |
void |
startBVars()
Receives notification of the beginning of a BVars element. |
void |
startError()
Receives notification of the beginning of a error element. |
void |
startObject()
Receives notification of the beginning of a object element. |
void |
startParse()
Receives notification of the beginning of parse (of a set of OpenMath-objects). |
| Methods inherited from class fr.inria.openmath.omapi.ParserAdapter |
readInteger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OMTreeParserHandler()
| Method Detail |
public void setLocator(fr.inria.openmath.omapi.Locator locator)
By default, do nothing. Application writers may override this method in a subclass if they wish to store the locator for use with other events.
setLocator in interface fr.inria.openmath.omapi.ParserHandlerlocator - A locator for all OpenMath parse events.ParserHandler.setLocator(fr.inria.openmath.omapi.Locator),
Locator
public void startParse()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
startParse in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.
public void endParse()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
The OpenMath parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of the input (no more OpenMath objects).
endParse in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.
public void startObject()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
startObject in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.endObject()
public void endObject()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
endObject in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.startObject()
public void startApplication()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
startApplication in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.endApplication()
public void endApplication()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
endApplication in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.startApplication()
public void startAttribution()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
startAttribution in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.endAttribution()
public void endAttribution()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
endAttribution in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.startAttribution()
public void startAttributePairs()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
startAttributePairs in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.endAttributePairs()
public void endAttributePairs()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
endAttributePairs in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.startAttribution()
public void startBind()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
startBind in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.endBind()
public void startBVars()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
startBVars in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.endBVars()
public void endBVars()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
endBVars in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.startBVars()
public void endBind()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
endBind in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.endBind()
public void startError()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
startError in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.endError()
public void endError()
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
endError in interface fr.inria.openmath.omapi.ParserHandlerfr.inria.openmath.omapi.OMException - Any OpenMath exception.startError()
public void readInteger(fr.inria.openmath.omapi.BigInt value)
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
readInteger in interface fr.inria.openmath.omapi.ParserHandlervalue - the value embeded in this Integer element. This is an infinite precision integer.
fr.inria.openmath.omapi.OMException - Any OpenMath exception.BigInt
public void readFloat(double value)
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
readFloat in interface fr.inria.openmath.omapi.ParserHandlervalue - the value embeded in this Float element.
fr.inria.openmath.omapi.OMException - Any OpenMath exception.
public void readString(java.lang.String value)
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
readString in interface fr.inria.openmath.omapi.ParserHandlervalue - the value embeded in this String element.
fr.inria.openmath.omapi.OMException - Any OpenMath exception.
public void readVariable(java.lang.String name)
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
readVariable in interface fr.inria.openmath.omapi.ParserHandlername - the name of this Variable element.
fr.inria.openmath.omapi.OMException - Any OpenMath exception.
public void readByteArray(byte[] value)
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
readByteArray in interface fr.inria.openmath.omapi.ParserHandlervalue - the value embeded in this ByteArray element.
fr.inria.openmath.omapi.OMException - Any OpenMath exception.
public void readSymbol(fr.inria.openmath.omapi.Symbol value)
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
readSymbol in interface fr.inria.openmath.omapi.ParserHandlervalue - the value embeded in this Symbol element.
fr.inria.openmath.omapi.OMException - Any OpenMath exception.Symbol
public void readComment(java.lang.String value)
throws fr.inria.openmath.omapi.OMException
By default, do nothing. Application writers may override this method in a subclass.
readComment in interface fr.inria.openmath.omapi.ParserHandlervalue - the value embeded in this Comment element.
fr.inria.openmath.omapi.OMException - Any OpenMath exception.Commentpublic void setEventSource(LinearParserEventSource eventSource)
eventSource - the event source
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||