Interface CustomParser


public interface CustomParser
Specifies the methods which must be implemented by a custom parser to be called-back by the common parser.
  • Method Details

    • customExpression

      @Opt Model.CustomExpression customExpression()
      Continue the parsing process and try to parse a custom-level expression which identifies a model element.
      Returns:
      the description of the access to a model element
    • parseLabelText

      @Opt Model.CustomExpression parseLabelText()
      Continue the parsing process and try to parse a label text for a switch statement.
      Returns:
      the description of the label value.
    • parse

      @Opt Model.Expr parse(String source, String sourceIndication)
      Start a complete parsing process, starting with the toplevel syntax rule.

      (THis is just a wrapper which passes on to the common parser, because the toplevel syntax rule is in the common part.)

      Parameters:
      source - to be parsed
      sourceIndication - to be used in the document id of all messages.
      Returns:
      the result of parsing, if successful. Maybe null when error occured.