public interface TermFunction extends TermList
Term.Operator| Modifier and Type | Method and Description |
|---|---|
String |
getFunctionName()
Gets the name of the function.
|
List<List<Term<?>>> |
getSeparatedArgs(Term<?> separator)
Splits the list of arguments to several lists based on the given separator term.
|
List<Term<?>> |
getSeparatedValues(Term<?> separator,
boolean allowKeywords)
Splits the list of arguments using the given separator term and tries to convert the
arguments to typed values (lengths, times, numbers, etc...)
|
List<Term<?>> |
getValues(boolean allowKeywords)
Tries to convert the terms to a list of typed values (lengths, times, numbers, etc...).
|
boolean |
isValid()
Checks whether the arguments passed using
setValue() are valid for this function. |
TermFunction |
setFunctionName(String functionName) |
getOperator, getValue, setOperator, setValue, shallowCloneadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamString getFunctionName()
TermFunction setFunctionName(String functionName)
boolean isValid()
setValue() are valid for this function.true when the function has valid argumentsList<List<Term<?>>> getSeparatedArgs(Term<?> separator)
separator - The term used as a separator (typically TermOperator(',').List<Term<?>> getSeparatedValues(Term<?> separator, boolean allowKeywords)
separator - The term used as a separator (typically TermOperator(',').null in case that the arguments cannot be converted to values.Copyright © 2019. All rights reserved.