Package org.qdl_lang.evaluate
Class ListEvaluator
- java.lang.Object
- 
- org.qdl_lang.evaluate.AbstractEvaluator
- 
- org.qdl_lang.evaluate.ListEvaluator
 
 
- 
- All Implemented Interfaces:
- Serializable,- EvaluatorInterface
 
 public class ListEvaluator extends AbstractEvaluator Created by Jeff Gaynor 
 on 9/30/21 at 5:07 PM- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classListEvaluator.DoReverse- 
Nested classes/interfaces inherited from class org.qdl_lang.evaluate.AbstractEvaluatorAbstractEvaluator.CommonKeyIterator, AbstractEvaluator.fPointer, AbstractEvaluator.fpResult
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intLIST_BASE_VALUEstatic StringLIST_COPYstatic intLIST_COPY_TYPEstatic StringLIST_COPY2static StringLIST_FQstatic StringLIST_INSERT_ATstatic intLIST_INSERT_AT_TYPEstatic StringLIST_INSERT_AT2static StringLIST_NAMESPACEstatic StringLIST_REVERSEstatic intLIST_REVERSE_TYPEstatic StringLIST_REVERSE2static StringLIST_SORTstatic intLIST_SORT_TYPEstatic StringLIST_STARTS_WITHstatic intLIST_STARTS_WITH_TYPEstatic StringLIST_STARTS_WITH2static StringLIST_SUBSETstatic intLIST_SUBSET_TYPEstatic StringPICKstatic intPICK_TYPE- 
Fields inherited from class org.qdl_lang.evaluate.AbstractEvaluatorbigArgList, bigArgList0, FILE_OP_AUTO, FILE_OP_BINARY, FILE_OP_INPUT_STREAM, FILE_OP_TEXT_INI, FILE_OP_TEXT_STEM, FILE_OP_TEXT_STRING, FILE_OP_TEXT_WITHOUT_LIST_INI, fNames, MAX_ARG_COUNT
 - 
Fields inherited from interface org.qdl_lang.evaluate.EvaluatorInterfaceUNKNOWN_VALUE
 
- 
 - 
Constructor SummaryConstructors Constructor Description ListEvaluator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectcheckCopyNode(ExpressionInterface expr, State state, boolean doInsert)booleandispatch(Polyad polyad, State state)Does the actual evaluation of thePolyad.protected voiddoListCopyOrInsert(Polyad polyad, State state, boolean doInsert)protected voiddoListReverse(Polyad polyad, State state)protected voiddoListSort(Polyad polyad, State state)Always returns a sorted list.protected voiddoListStartsWith(Polyad polyad, State state)Returns a list of indices.protected booleandoListSubset(Polyad polyad, State state)protected booleandoPickSubset(Polyad polyad, State state)Pick elements based on a function that is supplied.String[]getFunctionNames()StringgetNamespace()intgetType(String name)- 
Methods inherited from class org.qdl_lang.evaluate.AbstractEvaluatorareAllBigDecimals, areAllBoolean, areAllLongs, areAllNumbers, areAllSets, areAllStems, areAllStrings, areAnyBigDecimals, areNoneStems, bdEquals, checkNull, checkNull, convertArgsToStem, evaluate, evaluate, finishExpr, getBigArgList, getBigArgList0, getCommonKeys, getFQFunctionNames, getFunctionReferenceNode, getFunctionReferenceNode, getOperator, getOrCreateStem, isBigDecimal, isBoolean, isBuiltInFunction, isFunctionRef, isLong, isNumber, isScalar, isSet, isStem, isStemList, isString, listFunctions, NEWgetOperator, OLDgetOperator, process1, process2, process2, process3, processSet1, processSet2, processSet2, processStem1, processStem2, processStem3, resolveResourceToFile, tempFname, toBD, toConstants, toStem
 
- 
 
- 
- 
- 
Field Detail- 
LIST_NAMESPACEpublic static final String LIST_NAMESPACE - See Also:
- Constant Field Values
 
 - 
LIST_FQpublic static final String LIST_FQ - See Also:
- Constant Field Values
 
 - 
LIST_BASE_VALUEpublic static final int LIST_BASE_VALUE - See Also:
- Constant Field Values
 
 - 
LIST_INSERT_ATpublic static final String LIST_INSERT_AT - See Also:
- Constant Field Values
 
 - 
LIST_INSERT_AT2public static final String LIST_INSERT_AT2 - See Also:
- Constant Field Values
 
 - 
LIST_INSERT_AT_TYPEpublic static final int LIST_INSERT_AT_TYPE - See Also:
- Constant Field Values
 
 - 
LIST_SUBSETpublic static final String LIST_SUBSET - See Also:
- Constant Field Values
 
 - 
LIST_SUBSET_TYPEpublic static final int LIST_SUBSET_TYPE - See Also:
- Constant Field Values
 
 - 
LIST_COPYpublic static final String LIST_COPY - See Also:
- Constant Field Values
 
 - 
LIST_COPY2public static final String LIST_COPY2 - See Also:
- Constant Field Values
 
 - 
LIST_COPY_TYPEpublic static final int LIST_COPY_TYPE - See Also:
- Constant Field Values
 
 - 
LIST_STARTS_WITHpublic static final String LIST_STARTS_WITH - See Also:
- Constant Field Values
 
 - 
LIST_STARTS_WITH2public static final String LIST_STARTS_WITH2 - See Also:
- Constant Field Values
 
 - 
LIST_STARTS_WITH_TYPEpublic static final int LIST_STARTS_WITH_TYPE - See Also:
- Constant Field Values
 
 - 
LIST_REVERSEpublic static final String LIST_REVERSE - See Also:
- Constant Field Values
 
 - 
LIST_REVERSE2public static final String LIST_REVERSE2 - See Also:
- Constant Field Values
 
 - 
LIST_REVERSE_TYPEpublic static final int LIST_REVERSE_TYPE - See Also:
- Constant Field Values
 
 - 
LIST_SORTpublic static final String LIST_SORT - See Also:
- Constant Field Values
 
 - 
LIST_SORT_TYPEpublic static final int LIST_SORT_TYPE - See Also:
- Constant Field Values
 
 - 
PICKpublic static final String PICK - See Also:
- Constant Field Values
 
 - 
PICK_TYPEpublic static final int PICK_TYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getFunctionNamespublic String[] getFunctionNames() - Specified by:
- getFunctionNamesin class- AbstractEvaluator
 
 - 
dispatchpublic boolean dispatch(Polyad polyad, State state) Description copied from class:AbstractEvaluatorDoes the actual evaluation of thePolyad.- Specified by:
- dispatchin class- AbstractEvaluator
- Returns:
 
 - 
getTypepublic int getType(String name) 
 - 
getNamespacepublic String getNamespace() 
 - 
doListSortprotected void doListSort(Polyad polyad, State state) Always returns a sorted list.- Parameters:
- polyad-
- state-
 
 - 
checkCopyNodeprotected Object checkCopyNode(ExpressionInterface expr, State state, boolean doInsert) 
 - 
doPickSubsetprotected boolean doPickSubset(Polyad polyad, State state) Pick elements based on a function that is supplied.- Parameters:
- polyad-
- state-
- Returns:
 
 - 
doListStartsWithprotected void doListStartsWith(Polyad polyad, State state) Returns a list of indices. The results is conformable to the left argument and the values in it are the indices of the right argument.- Parameters:
- polyad-
- state-
 
 
- 
 
-