COM.hugin.HAPI
Class DefaultClassParseListener
java.lang.Object
COM.hugin.HAPI.DefaultClassParseListener
- All Implemented Interfaces:
- ClassParseListener, NetParseListener, ParseListener
- public class DefaultClassParseListener
- extends java.lang.Object
- implements ClassParseListener
Provides a simple implementation of the ClassParseListener class. It is
assumed that that the NET file for a Class for which an instance is
required can be found in the directory from which the application
program is started.
Method Summary |
void |
insertClass(java.lang.String className,
ClassCollection cc)
This implementation of the insertClass method simply calls the
parseClasses method with arguments className + ".net" and
'this'. |
void |
parseError(int line,
java.lang.String msg)
This implementation of the parseError method simply prints the
line number and parse error message to System.err. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultClassParseListener
public DefaultClassParseListener()
parseError
public void parseError(int line,
java.lang.String msg)
- This implementation of the parseError method simply prints the
line number and parse error message to System.err.
- Specified by:
parseError
in interface ClassParseListener
- Parameters:
line
- the line number at which the parse error occurred.msg
- the parse error message generated by Hugin.
insertClass
public void insertClass(java.lang.String className,
ClassCollection cc)
- This implementation of the insertClass method simply calls the
parseClasses
method with arguments className + ".net" and
'this'. Note that this simple implementation requires that the
application program is started in the directory where the
relevant NET files are stored.
- Specified by:
insertClass
in interface ClassParseListener
- Parameters:
className
- the name of the undefined Class.cc
- the ClassCollection into which the undefined Class
should be inserted.