java.lang.Object
org.htmlunit.corejs.javascript.ArrayLikeAbstractOperations
Contains implementation of shared methods useful for arrays and typed arrays.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumstatic interfacestatic enumstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectcoercibleIterativeMethod(Context cx, ArrayLikeAbstractOperations.IterativeOperation operation, VarScope scope, Object o, Object[] args, long length) static Comparator<Object>getSortComparator(Context cx, VarScope scope, Object[] args) getSortComparatorFromArguments(Context cx, VarScope scope, Object[] args) static ObjectiterativeMethod(Context cx, Object tag, String name, ArrayLikeAbstractOperations.IterativeOperation operation, VarScope scope, Object thisObj, Object[] args, ArrayLikeAbstractOperations.LengthAccessor lengthAccessor) static ObjectreduceMethod(Context cx, ArrayLikeAbstractOperations.ReduceOperation operation, VarScope scope, Object thisObj, Object[] args) Implements the methods "reduce" and "reduceRight".static ObjectreduceMethodWithLength(Context cx, ArrayLikeAbstractOperations.ReduceOperation operation, VarScope scope, Object thisObj, Object[] args, long length) static longtoSliceIndex(double value, long length)
-
Constructor Details
-
ArrayLikeAbstractOperations
public ArrayLikeAbstractOperations()
-
-
Method Details
-
iterativeMethod
public static Object iterativeMethod(Context cx, Object tag, String name, ArrayLikeAbstractOperations.IterativeOperation operation, VarScope scope, Object thisObj, Object[] args, ArrayLikeAbstractOperations.LengthAccessor lengthAccessor) -
coercibleIterativeMethod
-
toSliceIndex
public static long toSliceIndex(double value, long length) -
reduceMethod
public static Object reduceMethod(Context cx, ArrayLikeAbstractOperations.ReduceOperation operation, VarScope scope, Object thisObj, Object[] args) Implements the methods "reduce" and "reduceRight". -
reduceMethodWithLength
-
getSortComparator
-
getSortComparatorFromArguments
public static ArrayLikeAbstractOperations.ElementComparator getSortComparatorFromArguments(Context cx, VarScope scope, Object[] args)
-