Package org.lifstools.jgoslin.parser
Class LipidMapsParser
Parser implementation for the LIPID MAPS lipid shorthand nomenclature.
- Author:
- Dominik Kopczynski, Nils Hoffmann
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lifstools.jgoslin.parser.Parser
Parser.DPNode, Parser.ParsingErrors
-
Field Summary
Fields inherited from class org.lifstools.jgoslin.parser.Parser
avgPair, DEFAULT_QUOTE, EOF_RULE, EOF_RULE_NAME, EOF_SIGN, grammarName, MASK, nextFreeRuleIndex, NTtoNT, NTtoRule, originalTtoNT, quote, rightPair, RULE_ASSIGNMENT, RULE_SEPARATOR, RULE_TERMINAL, ruleToNT, SHIFT, START_RULE, substitution, TtoNT, usedEof
-
Constructor Summary
ConstructorDescriptionCreate a new instance of aLipidMapsParser
with default grammarDEFAULT_GRAMMAR
and default quoteStringFunctions.DEFAULT_QUOTE
and defaultKnownFunctionalGroups
.LipidMapsParser
(KnownFunctionalGroups knownFunctionalGroups) Create a new instance of aLipidMapsParser
with default grammarDEFAULT_GRAMMAR
and default quoteStringFunctions.DEFAULT_QUOTE
.LipidMapsParser
(KnownFunctionalGroups knownFunctionalGroups, String grammarContent, char quote) Create a new instance of aLipidMapsParser
. -
Method Summary
Methods inherited from class org.lifstools.jgoslin.parser.Parser
add_terminal, collect_backwards, collect_backwards, collect_one_backwards, compute_rule_key, de_escape, extract_text_based_rules, fill_tree, get_next_free_rule_index, is_terminal, parse, parse, parse_regular, raise_events, readGrammar, top_nodes
-
Constructor Details
-
LipidMapsParser
public LipidMapsParser(KnownFunctionalGroups knownFunctionalGroups, String grammarContent, char quote) Create a new instance of aLipidMapsParser
.- Parameters:
knownFunctionalGroups
- the known functional groupsgrammarContent
- the grammar text contentquote
- the quotation character used in the grammar
-
LipidMapsParser
Create a new instance of aLipidMapsParser
with default grammarDEFAULT_GRAMMAR
and default quoteStringFunctions.DEFAULT_QUOTE
.- Parameters:
knownFunctionalGroups
- the known functional groups
-
LipidMapsParser
public LipidMapsParser()Create a new instance of aLipidMapsParser
with default grammarDEFAULT_GRAMMAR
and default quoteStringFunctions.DEFAULT_QUOTE
and defaultKnownFunctionalGroups
.
-
-
Method Details
-
newEventHandler
- Specified by:
newEventHandler
in classParser<LipidAdduct>
-