public class ArrayLikeAbstractOperations extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ArrayLikeAbstractOperations.ElementComparator |
static class |
ArrayLikeAbstractOperations.IterativeOperation |
static class |
ArrayLikeAbstractOperations.ReduceOperation |
static class |
ArrayLikeAbstractOperations.StringLikeComparator |
| Constructor and Description |
|---|
ArrayLikeAbstractOperations() |
| Modifier and Type | Method and Description |
|---|---|
static Comparator<Object> |
getSortComparator(Context cx,
Scriptable scope,
Object[] args) |
static ArrayLikeAbstractOperations.ElementComparator |
getSortComparatorFromArguments(Context cx,
Scriptable scope,
Object[] args) |
static Object |
iterativeMethod(Context cx,
ArrayLikeAbstractOperations.IterativeOperation operation,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Implements the methods "every", "filter", "forEach", "map", and "some" without using an
IdFunctionObject.
|
static Object |
iterativeMethod(Context cx,
IdFunctionObject fun,
ArrayLikeAbstractOperations.IterativeOperation operation,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Implements the methods "every", "filter", "forEach", "map", and "some" using an
IdFunctionObject.
|
static Object |
reduceMethod(Context cx,
ArrayLikeAbstractOperations.ReduceOperation operation,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Implements the methods "reduce" and "reduceRight".
|
static long |
toSliceIndex(double value,
long length) |
public static Object iterativeMethod(Context cx, ArrayLikeAbstractOperations.IterativeOperation operation, Scriptable scope, Scriptable thisObj, Object[] args)
public static Object iterativeMethod(Context cx, IdFunctionObject fun, ArrayLikeAbstractOperations.IterativeOperation operation, Scriptable scope, Scriptable thisObj, Object[] args)
public static long toSliceIndex(double value,
long length)
public static Object reduceMethod(Context cx, ArrayLikeAbstractOperations.ReduceOperation operation, Scriptable scope, Scriptable thisObj, Object[] args)
public static Comparator<Object> getSortComparator(Context cx, Scriptable scope, Object[] args)
public static ArrayLikeAbstractOperations.ElementComparator getSortComparatorFromArguments(Context cx, Scriptable scope, Object[] args)
Copyright © 2025 HtmlUnit. All rights reserved.