Merge pull request #1070 from RefinePro/issue-995

fix issue #995
This commit is contained in:
Thad Guidry 2015-09-21 20:12:51 -05:00
commit 85ffce60d2
3 changed files with 10 additions and 2 deletions

View File

@ -45,7 +45,7 @@ function init() {
Packages.com.google.refine.expr.MetaParser.registerLanguageParser(
"jython",
"Jython",
"Python",
Packages.com.google.refine.jython.JythonEvaluable.createParser(),
"return value"
);

View File

@ -1,4 +1,4 @@
name = jython
description = Google Refine Jython Extension
description = Google Refine Python Extension
templating = false
requires = core

View File

@ -120,6 +120,14 @@ abstract public class MetaParser {
}, "value");
}
/**
* 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
* @param languagePrefix
* @param name
* @param parser
* @param defaultExpression
*/
static public void registerLanguageParser(String languagePrefix, String name, LanguageSpecificParser parser, String defaultExpression) {
s_languages.put(languagePrefix, new LanguageInfo(name, parser, defaultExpression));
}