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_9
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
CATALOG, 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, reference
addMessageListener, 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, traceIndent
public ExtendedCatalogParser(Catalog catalog, File file) throws FileNotFoundException, IOException
catalog
- file
- FileNotFoundException
IOException
public ExtendedCatalogParser(Catalog catalog, InputStream inputStream, boolean isPot) throws IOException
catalog
- inputStream
- isPot
- IOException
public ExtendedCatalogParser(Catalog catalog, InputStream inputStream, Charset charset, boolean isPot)
public Catalog getCatalog()
public void reportError(antlr.RecognitionException e)
reportError
in class antlr.Parser
public void reportError(String s)
reportError
in class antlr.Parser
public void reportWarning(String s)
reportWarning
in class antlr.Parser
protected void handleMessageBlock(antlr.collections.AST messageBlock)
handleMessageBlock
in class CatalogParser
protected void handleObsoleteMessageBlock(antlr.collections.AST messageBlock)
handleObsoleteMessageBlock
in class CatalogParser
protected void handleCatalogComment(antlr.collections.AST comment)
handleCatalogComment
in class CatalogParser
protected void handleExtractedComment(antlr.collections.AST comment)
handleExtractedComment
in class CatalogParser
protected void handleReference(antlr.collections.AST sourceRef)
handleReference
in class CatalogParser
protected void handleFlag(antlr.collections.AST flag)
handleFlag
in class CatalogParser
protected void handlePreviousMsgctxt(antlr.collections.AST previousMsgctxt)
handlePreviousMsgctxt
in class CatalogParser
protected void handlePreviousMsgid(antlr.collections.AST previousMsgid)
handlePreviousMsgid
in class CatalogParser
protected void handlePreviousMsgidPlural(antlr.collections.AST previousMsgidPlural)
handlePreviousMsgidPlural
in class CatalogParser
protected void handleDomain(antlr.collections.AST domain)
handleDomain
in class CatalogParser
protected void handleMsgctxt(antlr.collections.AST msgctxt)
handleMsgctxt
in class CatalogParser
protected void handleMsgid(antlr.collections.AST msgid)
handleMsgid
in class CatalogParser
protected void handleMsgidPlural(antlr.collections.AST msgidPlural)
handleMsgidPlural
in class CatalogParser
protected void handleMsgstr(antlr.collections.AST msgstr)
handleMsgstr
in class CatalogParser
protected void handleMsgstrPlural(antlr.collections.AST msgstr, antlr.collections.AST plurality)
handleMsgstrPlural
in class CatalogParser
Copyright © 2007–2016 JBoss, a division of Red Hat, Inc. All rights reserved.