Klasse FattyAcidParser

java.lang.Object
org.lifstools.jgoslin.parser.Parser<LipidAdduct>
org.lifstools.jgoslin.parser.FattyAcidParser

public final class FattyAcidParser extends Parser<LipidAdduct>
Parser implementation for IUPAC Fatty acids nomenclature.
Autor:
Dominik Kopczynski, Nils Hoffmann
  • Konstruktordetails

  • Methodendetails

    • parse

      public LipidAdduct parse(String text, BaseParserEventHandler eventHandler)
      Beschreibung aus Klasse kopiert: Parser
      Parse the given text, constructing the output object of type T using the provided parser event handler.
      Setzt außer Kraft:
      parse in Klasse Parser<LipidAdduct>
      Parameter:
      text - the text to parse.
      eventHandler - the parser event handler to process events created by the parser.
      Gibt zurück:
      the parsed object of type T if successful, otherwise an exception will be thrown.
    • parse

      public LipidAdduct parse(String text, BaseParserEventHandler eventHandler, boolean with_exception)
      Beschreibung aus Klasse kopiert: Parser
      Parse the given text, constructing the output object of type T using the provided parser event handler.Allows the user to specify, if exceptions should be thrown on errors.
      Setzt außer Kraft:
      parse in Klasse Parser<LipidAdduct>
      Parameter:
      text - the text to parse.
      eventHandler - the parser event handler to process events created by the parser.
      with_exception - if true, throws exception if parsing was not successful.
      Gibt zurück:
      the parsed object of type T if successful, otherwise null, if throwError is false.
    • newEventHandler

      public FattyAcidParserEventHandler newEventHandler()
      Angegeben von:
      newEventHandler in Klasse Parser<LipidAdduct>