Constructor and Description |
---|
HashFunction() |
Modifier and Type | Method and Description |
---|---|
abstract Literal |
evaluate(ValueFactory valueFactory,
Value... args)
Evaluate the function over the supplied input arguments, using the supplied
ValueFactory to produce the
result. |
protected String |
hash(String text,
String algorithm)
Calculate hash value, represented as hexadecimal string.
|
protected String hash(String text, String algorithm) throws NoSuchAlgorithmException
text
- textalgorithm
- name of the hash algorithmNoSuchAlgorithmException
public abstract Literal evaluate(ValueFactory valueFactory, Value... args) throws ValueExprEvaluationException
Function
ValueFactory
to produce the
result.evaluate
in interface Function
valueFactory
- a ValueFactory
to use for producing the function result.args
- the function input arguments.ValueExprEvaluationException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.