Package org.openrefine.grel
Interface Function
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
Abs,ACos,And,ArgsToArray,ASin,ATan,ATan2,Ceil,Chomp,Coalesce,Combin,Contains,Cos,Cosh,Cross,DatePart,Decode,Degrees,DetectLanguage,Diff,Encode,EndsWith,Escape,Even,Exp,FacetCount,Fact,FactN,Find,Fingerprint,Floor,Get,GreatestCommonDenominator,HasField,InArray,Inc,IndexOf,InnerHtml,InnerXml,Join,Jsonize,LastIndexOf,LeastCommonMultiple,Length,Ln,Log,Match,Max,MD5,Min,Mod,Multinomial,NGram,NGramFingerprint,Not,Now,Odd,Or,OwnText,Parent,ParseHtml,ParseJson,ParseUri,ParseXml,Partition,Phonetic,Pow,PureFunction,Quotient,Radians,RandomNumber,Range,Reinterpret,Replace,ReplaceChars,ReplaceEach,Reverse,Round,RPartition,ScriptText,SelectXml,SHA1,Sin,Sinh,Slice,SmartSplit,Sort,Split,SplitByCharType,SplitByLengths,StartsWith,Sum,Tan,Tanh,TimeSinceUnixEpochToDate,ToDate,ToLowercase,ToNumber,ToString,ToTitlecase,ToUppercase,Trim,Type,Unescape,Unicode,UnicodeType,Uniques,WholeText,WikibaseIssuesFunction,XmlAttr,XmlText,Xor
public interface Function extends Serializable
Interface for functions. When a function is called, its arguments have already been evaluated down into non-error values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Objectcall(Properties bindings, Object[] args)Computes the value of the function on the given argumentsStringgetDescription()default StringgetParams()StringgetReturns()
-
-
-
Method Detail
-
call
Object call(Properties bindings, Object[] args)
Computes the value of the function on the given arguments- Parameters:
bindings- the evaluation contextargs- the values of the arguments- Returns:
- the return value of the function
-
getDescription
String getDescription()
-
getParams
default String getParams()
-
getReturns
String getReturns()
-
-