org.gnomekr.potron.parser
Class POParser
java.lang.Object
org.gnomekr.potron.parser.POParser
public class POParser
- extends Object
POParser.java
- Version:
- $Revision 1.1 $ $Date: 2005/08/28 11:47:14 $
TODO: Throw ParseException with sensible information when the input is invalid.
- Author:
- Xavier Cho
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POParser
public POParser()
POParser
public POParser(IPOParserCallback callback)
- Parameters:
callback
-
getCallback
public IPOParserCallback getCallback()
- Returns:
- Returns the callback.
setCallback
public void setCallback(IPOParserCallback callback)
- Parameters:
callback
- The callback to set.
parse
public void parse(File file,
String encoding)
throws ParseException,
UnsupportedEncodingException,
IOException
- Parameters:
file
- encoding
-
- Throws:
ParseException
UnsupportedEncodingException
IOException
parse
public void parse(Reader reader)
throws ParseException,
IOException
- Parameters:
reader
-
- Throws:
ParseException
IOException
parseHeader
protected void parseHeader(antlr.collections.AST ast)
throws ParseException
- Throws:
ParseException
parseComment
protected void parseComment(antlr.collections.AST ast)
throws ParseException
- Throws:
ParseException
parseComment
protected void parseComment(antlr.collections.AST ast,
ParserEntry entry)
throws ParseException
- Throws:
ParseException
parseEntry
protected void parseEntry(antlr.collections.AST ast)
throws ParseException
- Throws:
ParseException
getLiteralContent
protected String getLiteralContent(antlr.collections.AST ast)
throws ParseException
- Throws:
ParseException
parsePluralForm
protected void parsePluralForm(String value)
Copyright © 2000-2005 Gnome Korea. All Rights Reserved.