Package eu.bandm.tools.formattext
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 Summary
Modifier and TypeMethodDescriptionContinue the parsing process and try to parse a custom-level expression which identifies a model element.Start a complete parsing process, starting with the toplevel syntax rule.Continue the parsing process and try to parse a label text for a switch statement.
-
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
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 parsedsourceIndication- to be used in the document id of all messages.- Returns:
- the result of parsing, if successful. Maybe null when error occured.
-