ReturnType
- the class of the returned valuepublic abstract class Scalar<ReturnType,InputType> extends java.lang.Object implements FunctionImplementation<Function>
Constructor and Description |
---|
Scalar() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
anyNonLiterals(java.util.Collection<? extends Symbol> arguments) |
Scalar<ReturnType,InputType> |
compile(java.util.List<Symbol> arguments)
Returns a optional compiled version of the scalar implementation.
|
protected static boolean |
containsNullLiteral(java.util.Collection<Symbol> symbols) |
abstract ReturnType |
evaluate(Input<InputType>... args) |
static <ReturnType,InputType> |
evaluateIfLiterals(Scalar<ReturnType,InputType> scalar,
Function function)
This method will evaluate the function using the given scalar if all arguments are literals.
|
protected static boolean |
hasNullInputs(Input[] args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
info, normalizeSymbol
public abstract ReturnType evaluate(Input<InputType>... args)
public Scalar<ReturnType,InputType> compile(java.util.List<Symbol> arguments)
protected static boolean anyNonLiterals(java.util.Collection<? extends Symbol> arguments)
protected static boolean hasNullInputs(Input[] args)
protected static boolean containsNullLiteral(java.util.Collection<Symbol> symbols)
public static <ReturnType,InputType> Symbol evaluateIfLiterals(Scalar<ReturnType,InputType> scalar, Function function)