Class MetaParser

java.lang.Object
com.google.refine.expr.MetaParser

public abstract class MetaParser extends Object
  • Field Details

  • Constructor Details

    • MetaParser

      public MetaParser()
  • Method Details

    • 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
      Parameters:
      languagePrefix -
      name -
      parser -
      defaultExpression -
    • getLanguageInfo

      public static MetaParser.LanguageInfo getLanguageInfo(String languagePrefix)
    • 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.
      Parameters:
      s -
      Returns:
      Throws:
      ParsingException
    • parseGREL

      protected static Evaluable parseGREL(String s) throws ParsingException
      Throws:
      ParsingException