org.gnomekr.potron.parser
Class POParser

java.lang.Object
  extended by 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

Constructor Summary
POParser()
           
POParser(IPOParserCallback callback)
           
 
Method Summary
 IPOParserCallback getCallback()
           
protected  String getLiteralContent(antlr.collections.AST ast)
           
 void parse(File file, String encoding)
           
 void parse(Reader reader)
           
protected  void parseComment(antlr.collections.AST ast)
           
protected  void parseComment(antlr.collections.AST ast, ParserEntry entry)
           
protected  void parseEntry(antlr.collections.AST ast)
           
protected  void parseHeader(antlr.collections.AST ast)
           
protected  void parsePluralForm(String value)
           
 void setCallback(IPOParserCallback callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POParser

public POParser()

POParser

public POParser(IPOParserCallback callback)
Parameters:
callback -
Method Detail

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.