public class TermFunctionImpl extends TermListImpl implements TermFunction
Term.Operator| Modifier and Type | Field and Description |
|---|---|
protected String |
functionName |
operator, valuemodCount| Modifier | Constructor and Description |
|---|---|
protected |
TermFunctionImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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...).
|
int |
hashCode() |
TermFunction |
setFunctionName(String functionName) |
String |
toString() |
add, add, get, getOperator, getValue, iterator, remove, setOperator, setValue, shallowClone, sizeaddAll, clear, indexOf, lastIndexOf, listIterator, listIterator, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOperator, getValue, setOperator, setValue, shallowCloneadd, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamprotected String functionName
public String getFunctionName()
TermFunctiongetFunctionName in interface TermFunctionpublic TermFunction setFunctionName(String functionName)
setFunctionName in interface TermFunctionfunctionName - the functionName to setpublic List<List<Term<?>>> getSeparatedArgs(Term<?> separator)
TermFunctiongetSeparatedArgs in interface TermFunctionseparator - The term used as a separator (typically TermOperator(',').public List<Term<?>> getSeparatedValues(Term<?> separator, boolean allowKeywords)
TermFunctiongetSeparatedValues in interface TermFunctionseparator - The term used as a separator (typically TermOperator(',').null in case that the arguments cannot be converted to values.public List<Term<?>> getValues(boolean allowKeywords)
TermFunctiongetValues in interface TermFunctionnull in case that the arguments cannot be converted to values.public String toString()
toString in class TermListImplpublic int hashCode()
hashCode in interface Collection<Term<?>>hashCode in interface List<Term<?>>hashCode in class TermListImplpublic boolean equals(Object obj)
equals in interface Collection<Term<?>>equals in interface List<Term<?>>equals in class TermListImplCopyright © 2018. All rights reserved.