|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An implementation of the ClassParseListener interface must used
when one wants to call the parseClasses
method of the ClassCollection class. That is, you
must implement your own parseError
and insertClass
methods.
As an alternative to implementing the ClassParseListener yourself, you
may wish to use the DefaultClassParseListener
class.
Method Summary | |
void |
insertClass(java.lang.String className,
ClassCollection cc)
Inserts an undefined class in a ClassCollection that is encountered during parsing of a Hugin NET file. |
void |
parseError(int line,
java.lang.String msg)
Handles parse errors occuring during parsing of a Hugin NET file. |
Method Detail |
public void parseError(int line, java.lang.String msg)
parseClasses
method of the ClassCollection
class) are handled by the parseError method.
parseError
in interface NetParseListener
line
- the line number at which the parse error occurred.msg
- the parse error message generated by Hugin.public void insertClass(java.lang.String className, ClassCollection cc)
parseClasses
method.
Please note that only implementations of insertClass() based on
calling the parseClasses
method is currently
guaranteed to work with the Hugin Java API.
className
- the name of the undefined Class.cc
- the ClassCollection into which the undefined Class
should be inserted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |