public class ExtendedCatalogParser extends CatalogParser
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5, _tokenSet_6, _tokenSet_7, _tokenSet_8, _tokenSet_9astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepthCATALOG, COMMENT, DOMAIN, EOF, EXTRACTION, FLAG, MESSAGE, MSGCTXT, MSGID, MSGID_PLURAL, MSGSTR, MSGSTR_PLURAL, NULL_TREE_LOOKAHEAD, OBSOLETE, PLURALITY, PREV_MSGCTXT, PREV_MSGID, PREV_MSGID_PLURAL, REFERENCE| Constructor and Description |
|---|
ExtendedCatalogParser(Catalog catalog,
File file)
Uses the charset encoding specified in the file's Gettext header.
|
ExtendedCatalogParser(Catalog catalog,
InputStream inputStream,
boolean isPot)
Uses the charset encoding specified in the stream's Gettext header.
|
ExtendedCatalogParser(Catalog catalog,
InputStream inputStream,
Charset charset,
boolean isPot) |
ExtendedCatalogParser(Catalog catalog,
Reader reader,
boolean isPot) |
| Modifier and Type | Method and Description |
|---|---|
Catalog |
getCatalog() |
protected void |
handleCatalogComment(antlr.collections.AST comment) |
protected void |
handleDomain(antlr.collections.AST domain) |
protected void |
handleExtractedComment(antlr.collections.AST comment) |
protected void |
handleFlag(antlr.collections.AST flag) |
protected void |
handleMessageBlock(antlr.collections.AST messageBlock) |
protected void |
handleMsgctxt(antlr.collections.AST msgctxt) |
protected void |
handleMsgid(antlr.collections.AST msgid) |
protected void |
handleMsgidPlural(antlr.collections.AST msgidPlural) |
protected void |
handleMsgstr(antlr.collections.AST msgstr) |
protected void |
handleMsgstrPlural(antlr.collections.AST msgstr,
antlr.collections.AST plurality) |
protected void |
handleObsoleteMessageBlock(antlr.collections.AST messageBlock) |
protected void |
handlePreviousMsgctxt(antlr.collections.AST previousMsgctxt) |
protected void |
handlePreviousMsgid(antlr.collections.AST previousMsgid) |
protected void |
handlePreviousMsgidPlural(antlr.collections.AST previousMsgidPlural) |
protected void |
handleReference(antlr.collections.AST sourceRef) |
void |
reportError(antlr.RecognitionException e) |
void |
reportError(String s) |
void |
reportWarning(String s) |
buildCatalogNode, buildTokenTypeASTClassMap, catalog, catalogComment, domain, entries, extractedComment, flag, messageBlock, messageBlocks, msgctxt, msgid, msgidPlural, msgstr, msgstrPlural, obsoleteEntries, previousMsgctxt, previousMsgid, previousMsgidPlural, referenceaddMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndentpublic ExtendedCatalogParser(Catalog catalog, File file) throws FileNotFoundException, IOException
catalog - file - FileNotFoundExceptionIOExceptionpublic ExtendedCatalogParser(Catalog catalog, InputStream inputStream, boolean isPot) throws IOException
catalog - inputStream - isPot - IOExceptionpublic ExtendedCatalogParser(Catalog catalog, InputStream inputStream, Charset charset, boolean isPot)
public Catalog getCatalog()
public void reportError(antlr.RecognitionException e)
reportError in class antlr.Parserpublic void reportError(String s)
reportError in class antlr.Parserpublic void reportWarning(String s)
reportWarning in class antlr.Parserprotected void handleMessageBlock(antlr.collections.AST messageBlock)
handleMessageBlock in class CatalogParserprotected void handleObsoleteMessageBlock(antlr.collections.AST messageBlock)
handleObsoleteMessageBlock in class CatalogParserprotected void handleCatalogComment(antlr.collections.AST comment)
handleCatalogComment in class CatalogParserprotected void handleExtractedComment(antlr.collections.AST comment)
handleExtractedComment in class CatalogParserprotected void handleReference(antlr.collections.AST sourceRef)
handleReference in class CatalogParserprotected void handleFlag(antlr.collections.AST flag)
handleFlag in class CatalogParserprotected void handlePreviousMsgctxt(antlr.collections.AST previousMsgctxt)
handlePreviousMsgctxt in class CatalogParserprotected void handlePreviousMsgid(antlr.collections.AST previousMsgid)
handlePreviousMsgid in class CatalogParserprotected void handlePreviousMsgidPlural(antlr.collections.AST previousMsgidPlural)
handlePreviousMsgidPlural in class CatalogParserprotected void handleDomain(antlr.collections.AST domain)
handleDomain in class CatalogParserprotected void handleMsgctxt(antlr.collections.AST msgctxt)
handleMsgctxt in class CatalogParserprotected void handleMsgid(antlr.collections.AST msgid)
handleMsgid in class CatalogParserprotected void handleMsgidPlural(antlr.collections.AST msgidPlural)
handleMsgidPlural in class CatalogParserprotected void handleMsgstr(antlr.collections.AST msgstr)
handleMsgstr in class CatalogParserprotected void handleMsgstrPlural(antlr.collections.AST msgstr,
antlr.collections.AST plurality)
handleMsgstrPlural in class CatalogParserCopyright © 2007–2015 JBoss, a division of Red Hat, Inc. All rights reserved.