All Packages Class Hierarchy This Package Previous Next Index
Class fr.inria.openmath.omapi.ParserAdapter
java.lang.Object
|
+----fr.inria.openmath.omapi.ParserAdapter
- public class ParserAdapter
- extends Object
- implements ParserHandler
Default base class for ParserHandlers.
This class implements the default behaviour for ParserHandler.
Application writers can extend this class when they need to
implement only part of an interface; parser writers can
instantiate this class to provide default handlers when the
application has not supplied its own.
Note that the use of this class is optional.
- See Also:
- ParserHandler
-
ParserAdapter()
-
-
endApplication()
- Receives notification of the end of an application element.
-
endAttributePairs()
- Receives notification of the end of an attribute-pairs element.
-
endAttribution()
- Receives notification of the end of an attribution element.
-
endBind()
- Receives notification of the beginning of a Bind element.
-
endBVars()
- Receives notification of the beginning of a BVars element.
-
endError()
- Receives notification of the end of an error element.
-
endObject()
- Receives notification of the end of an object element.
-
endParse()
- Receives notification of the end of parse.
-
readByteArray(byte[])
- Receives notification of a byteArray element.
-
readComment(String)
- Receives notification of a comment element.
-
readFloat(double)
- Receives notification of a floating-point number element.
-
readInteger(BigInteger)
- Receives notification of a Big Integer element.
-
readInteger(int)
- Receives notification of an Integer element.
-
readPInstruction(String)
- Receives notification of a processing instruction.
-
readString(String)
- Receives notification of a string element.
-
readSymbol(Symbol)
- Receives notification of a symbol element.
-
readVariable(String)
- Receives notification of a variable element.
-
setLocator(Locator)
- Receives a Locator for parse events.
-
startApplication()
- Receives notification of the beginning of a application element.
-
startAttributePairs()
- Receives notification of the beginning of an attribute-pairs element.
-
startAttribution()
- Receives notification of the beginning of a attribution element.
-
startBind()
- Receives notification of the beginning of a Bind element.
-
startBVars()
- Receives notification of the beginning of a BVars element.
-
startError()
- Receives notification of the beginning of a error element.
-
startObject()
- Receives notification of the beginning of a object element.
-
startParse()
- Receives notification of the beginning of parse (of a set of OpenMath-objects).
ParserAdapter
public ParserAdapter()
setLocator
public void setLocator(Locator locator)
- Receives a Locator for parse events.
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.
- Parameters:
- locator - A locator for all OpenMath parse events.
- See Also:
- setLocator, Locator
startParse
public void startParse() throws OMException
- Receives notification of the beginning of parse (of a set of OpenMath-objects).
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
endParse
public void endParse() throws OMException
- Receives notification of the end of parse.
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).
- Throws: OMException
- Any OpenMath exception.
startObject
public void startObject() throws OMException
- Receives notification of the beginning of a object element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- endObject
endObject
public void endObject() throws OMException
- Receives notification of the end of an object element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- startObject
startApplication
public void startApplication() throws OMException
- Receives notification of the beginning of a application element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- endApplication
endApplication
public void endApplication() throws OMException
- Receives notification of the end of an application element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- startApplication
startAttribution
public void startAttribution() throws OMException
- Receives notification of the beginning of a attribution element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- endAttribution
endAttribution
public void endAttribution() throws OMException
- Receives notification of the end of an attribution element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- startAttribution
startAttributePairs
public void startAttributePairs() throws OMException
- Receives notification of the beginning of an attribute-pairs element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- endAttributePairs
endAttributePairs
public void endAttributePairs() throws OMException
- Receives notification of the end of an attribute-pairs element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- startAttribution
startBind
public void startBind() throws OMException
- Receives notification of the beginning of a Bind element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- endBind
startBVars
public void startBVars() throws OMException
- Receives notification of the beginning of a BVars element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- endBVars
endBind
public void endBind() throws OMException
- Receives notification of the beginning of a Bind element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- endBind
endBVars
public void endBVars() throws OMException
- Receives notification of the beginning of a BVars element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- startBVars
startError
public void startError() throws OMException
- Receives notification of the beginning of a error element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- endError
endError
public void endError() throws OMException
- Receives notification of the end of an error element.
By default, do nothing. Application writers may override this
method in a subclass.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- startError
readInteger
public void readInteger(int value) throws OMException
- Receives notification of an Integer element.
By default, do nothing. Application writers may override this
method in a subclass.
- Parameters:
- value - the value embedded in this Integer element.
- Throws: OMException
- Any OpenMath exception.
readInteger
public void readInteger(BigInteger value) throws OMException
- Receives notification of a Big Integer element.
By default, do nothing. Application writers may override this
method in a subclass.
- Parameters:
- value - the value embedded in this Integer element. This is an infinite precision integer.
- Throws: OMException
- Any OpenMath exception.
readFloat
public void readFloat(double value) throws OMException
- Receives notification of a floating-point number element.
By default, do nothing. Application writers may override this
method in a subclass.
- Parameters:
- value - the value embedded in this Float element.
- Throws: OMException
- Any OpenMath exception.
readString
public void readString(String value) throws OMException
- Receives notification of a string element.
By default, do nothing. Application writers may override this
method in a subclass.
- Parameters:
- value - the value embedded in this String element.
- Throws: OMException
- Any OpenMath exception.
readVariable
public void readVariable(String name) throws OMException
- Receives notification of a variable element.
By default, do nothing. Application writers may override this
method in a subclass.
- Parameters:
- name - the name of this Variable element.
- Throws: OMException
- Any OpenMath exception.
readByteArray
public void readByteArray(byte value[]) throws OMException
- Receives notification of a byteArray element.
By default, do nothing. Application writers may override this
method in a subclass.
- Parameters:
- value - the value embedded in this ByteArray element.
- Throws: OMException
- Any OpenMath exception.
readSymbol
public void readSymbol(Symbol value) throws OMException
- Receives notification of a symbol element.
By default, do nothing. Application writers may override this
method in a subclass.
- Parameters:
- value - the value embedded in this Symbol element.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- Symbol
readComment
public void readComment(String value) throws OMException
- Receives notification of a comment element.
By default, do nothing. Application writers may override this
method in a subclass.
- Parameters:
- value - the value embedded in this Comment element.
- Throws: OMException
- Any OpenMath exception.
- See Also:
- Comment
readPInstruction
public void readPInstruction(String value) throws OMException
- Receives notification of a processing instruction.
The Parser will invoke this method each time a processing instruction
is parsed.
- Parameters:
- value - the value embedded in this Processing Instruction element.
- Throws: OMException
- Any OpenMath exception.
All Packages Class Hierarchy This Package Previous Next Index