Package org.openrefine.jython
Class JythonEvaluable
- java.lang.Object
-
- org.openrefine.jython.JythonEvaluable
-
- All Implemented Interfaces:
Serializable
,Evaluable
public class JythonEvaluable extends Object implements Evaluable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JythonEvaluable(String source, String languagePrefix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LanguageSpecificParser
createParser()
Object
evaluate(Properties bindings)
Evaluate this expression in the given environment (bindings).Set<String>
getColumnDependencies(String baseColumn)
Returns the names of the columns this expression depends on.String
getLanguagePrefix()
String
getSource()
Returns the source string which generated this expression.protected Object
unwrap(Object result)
protected Object
unwrap(org.python.core.PyObject po)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrefine.expr.Evaluable
getFullSource, isLocal, renameColumnDependencies
-
-
-
-
Method Detail
-
createParser
public static LanguageSpecificParser createParser()
-
evaluate
public Object evaluate(Properties bindings)
Description copied from interface:Evaluable
Evaluate this expression in the given environment (bindings).
-
unwrap
protected Object unwrap(org.python.core.PyObject po)
-
getColumnDependencies
public Set<String> getColumnDependencies(String baseColumn)
Description copied from interface:Evaluable
Returns the names of the columns this expression depends on.- Specified by:
getColumnDependencies
in interfaceEvaluable
- Parameters:
baseColumn
- the name of the column this expression is based on (null if none)- Returns:
- null if the columns could not be isolated: in this case, the expression might depend on all columns in the project.
-
getSource
public String getSource()
Description copied from interface:Evaluable
Returns the source string which generated this expression. This does not include the language prefix, which can be obtained byEvaluable.getLanguagePrefix()
.
-
getLanguagePrefix
public String getLanguagePrefix()
- Specified by:
getLanguagePrefix
in interfaceEvaluable
- Returns:
- the language prefix used to generate this evaluable.
-
-