COM.hugin.HAPI
Interface ParseListener

All Known Subinterfaces:
ClassParseListener, ExpressionParseListener, NetParseListener

public interface ParseListener

The ParseListener interface is a general interface for parsing Hugin NET files and strings representing Expressions.

The parse listener used when one wants to call the Domain constructor should be created by implementing the NetParseListener subclass.

The parse listener used when calling the parseClasses method of the ClassCollection class should be created by implementing the ClassParseListener subclass.

The parse listener used when parsing strings representing Expressions should be created by implementing the ExpressionParseListener subclass.

For backwards compatibility, however, implementations of the ParseListener class can be used when calling the Domain constructor and when parsing Expression strings.


Method Summary
 void parseError(int position, java.lang.String msg)
          Handles parse errors occuring during parsing of Hugin NET files and strings representing Expressions.
 

Method Detail

parseError

public void parseError(int position,
                       java.lang.String msg)
Handles parse errors occuring during parsing of Hugin NET files and strings representing Expressions.

Parameters:
position - the position at which the parse error occurred.
msg - the parse error message generated by Hugin.