Class MetaParser


  • public abstract class MetaParser
    extends Object
    • Constructor Detail

      • MetaParser

        public MetaParser()
    • Method Detail

      • registerLanguageParser

        public static void registerLanguageParser​(String languagePrefix,
                                                  String name,
                                                  LanguageSpecificParser parser,
                                                  String defaultExpression)
        languagePrefix will be stored in the meta model as an identifier. so be careful when change it as it will break the backward compatibility for the old project
      • getLanguagePrefixes

        public static Set<String> getLanguagePrefixes()
      • parse

        public static Evaluable parse​(String s)
                               throws ParsingException
        Parse an expression that might have a language prefix into an Evaluable. Expressions without valid prefixes or without any prefix are assumed to be GREL expressions.
        Throws:
        ParsingException