Searched refs:apply (Results 1 - 25 of 718) sorted by relevance

1234567891011>>

/openjdk10/nashorn/test/script/basic/
H A DJDK-8046905.js25 * JDK-8046905: apply on apply is broken
31 var apply = Function.prototype.apply;
41 print("1 level of apply")
43 print(sort.apply([4,3,2,1]))
45 print("2 levels of apply")
47 print(apply.apply(sort,[[4,3,2,1]]))
49 print("3 levels of apply")
[all...]
H A DJDK-8184720.js26 * when calling apply() and passing the arguments object
34 (function(){}).apply(null, arguments);
H A DJDK-8012457.js25 * JDK-8012457: Function.prototype.apply should accept any array-like argument for function arguments
32 Function().apply(null, {length: null})
33 Function().apply(null, {length: 0.1})
38 Function().apply(null,
H A DNASHORN-14.js26 * NASHORN-14 : Function.apply and call do not work with varargs in callee.
34 print('callback with args ' + Array.prototype.join.apply(arguments))
39 cb.apply(this, ['s', 10, 13.1, true, false, null, {}, [], [1,2,{}]]);
H A DNASHORN-185.js33 return Array.prototype.shift.apply(arguments);
H A Dapplycall.js26 * Verify that function can be called by apply and call.
38 func.apply(this, [ "hello, " , "world" ]);
41 // extension: you can pass java List to apply
46 func.apply(this, list);
48 print("func.apply.length = " + func.apply.length);
54 func2.apply(this);
56 func.apply(this);
H A DJDK-8031359.js32 apply: function(arg) {
43 apply: function(arg) {
50 apply: function(arg) {
61 func2.apply("hello");
H A DJDK-8057019-payload.js25 * this apply with extra arguments
35 func.apply(this, arguments);
38 func.apply(this, arguments, 23);
41 func.apply(this, arguments, 23, 4711);
44 func.apply(this, arguments, 23, 4711, "apa", "dingo", "gorilla");
47 func.apply(this, arguments, 23);
50 func.apply(this, [23, "apa", "gorilla", "dingo"], 17);
53 func.apply(this, [23, "apa", "gorilla", "dingo"]);
56 func.apply(this, "significant");
H A DJDK-8057825.js25 * JDK-8057825 : A failed apply to call generation should NOT reuse the
26 * best apply to call generation so far - because it may not fit!!!
34 f.apply(this, arguments); // no transform applied here
45 printerApplier.apply(this, ["foo", "bar"]);
H A DJDK-8020358.js40 print(Function("return 'ok'").apply(null, x));
42 print(Function("p", "return p").apply(null, x));
43 print(Function("return arguments[0]").apply(null, x));
H A DNASHORN-119.js25 * NASHORN-119 : Function.prototype.apply should accept any array-like object as second argument
37 func.apply(this, { length: 3, 0: "thus", 1: "spoke", 2: "zarathustra" });
H A DNASHORN-118.js25 * NASHORN-118 : Function.prototype.apply should accept "arguments" object
40 func.apply(this,arguments);
/openjdk10/langtools/test/tools/javac/lambda/lambdaExecution/
H A DTBlock.java31 * should not assume that the {@code apply} operation will be called upon
35 * @param <T> The type of input objects to {@code apply}.
45 void apply(T t); method in interface:TBlock
48 * Returns a Block which performs in sequence the {@code apply} methods of
49 * multiple Blocks. This Block's {@code apply} method is performed followed
50 * by the {@code apply} method of the specified Block operation.
53 * @return a Block which performs in sequence the {@code apply} method of
54 * this Block and the {@code apply} method of the specified Block operation
57 return (T t) -> { apply(t); other.apply(
[all...]
/openjdk10/jdk/src/java.desktop/macosx/classes/apple/laf/
H A DJRSUIStateFactory.java33 return new JRSUIState(Widget.SLIDER.apply(NoIndicator.YES.apply(0)));
37 return new JRSUIState(Widget.SLIDER_THUMB.apply(0));
41 return new JRSUIState(Widget.BUTTON_LITTLE_ARROWS.apply(0));
45 return new JRSUIState(Widget.DIVIDER_SPLITTER.apply(0));
49 return new JRSUIState(Widget.TAB.apply(SegmentTrailingSeparator.YES.apply(0)));
53 return new AnimationFrameState(Widget.DISCLOSURE_TRIANGLE.apply(0), 0);
57 return new ScrollBarState(Widget.SCROLL_BAR.apply(0), 0, 0, 0);
61 return new TitleBarHeightState(Widget.WINDOW_FRAME.apply(
[all...]
/openjdk10/nashorn/samples/
H A Dthis_for_eval.js36 // the following won't work. eval.apply is indirect eval call
39 eval.apply(obj, [ " print(this.foo)" ]);
54 func.apply(obj, [ "print(this.foo)" ]);
H A Dcall_lambda.js36 apply: function(x) {
/openjdk10/langtools/test/tools/javac/lambda/
H A DMostSpecific08.java49 IntResult apply(PrimitiveFunction p); method in interface:MostSpecific08.Tester
50 <Z> ReferenceResult<Z> apply(ReferenceFunction<Z> p); method in interface:MostSpecific08.Tester
54 IntResult pr = t.apply(C::getInt); //ok - unoverloaded mref
55 ReferenceResult<Integer> rr = t.apply(C::getInteger); //ok - unoverloaded mref
59 IntResult pr1 = t.apply(c->c.getInt()); //ambiguous - implicit
60 IntResult pr2 = t.apply((C c)->c.getInt()); //ok
61 ReferenceResult<Integer> rr1 = t.apply(c->c.getInteger()); //ambiguous - implicit
62 ReferenceResult<Integer> rr2 = t.apply((C c)->c.getInteger()); //ok
H A DLambdaExpr07.java35 R apply(A x); method in interface:LambdaExpr07.Block
50 assertTrue(o.apply("B").apply("C").equals("ABC"));
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.phases/src/org/graalvm/compiler/phases/
H A DPhase.java35 public final void apply(final StructuredGraph graph) { method in class:Phase
36 apply(graph, true);
39 public final void apply(final StructuredGraph graph, final boolean dumpGraph) { method in class:Phase
40 apply(graph, null, dumpGraph);
/openjdk10/jdk/src/java.base/share/classes/java/util/function/
H A DDoubleFunction.java33 * whose functional method is {@link #apply(double)}.
49 R apply(double value); method in interface:DoubleFunction
H A DIntFunction.java33 * whose functional method is {@link #apply(int)}.
49 R apply(int value); method in interface:IntFunction
H A DLongFunction.java33 * whose functional method is {@link #apply(long)}.
49 R apply(long value); method in interface:LongFunction
H A DBiFunction.java34 * whose functional method is {@link #apply(Object, Object)}.
53 R apply(T t, U u); method in interface:BiFunction
63 * @param after the function to apply after this function is applied
70 return (T t, U u) -> after.apply(apply(t, u));
/openjdk10/nashorn/test/src/jdk/nashorn/test/models/
H A DVarArgConsumer.java33 public void apply(Object... o); method in interface:VarArgConsumer
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.loop.phases/src/org/graalvm/compiler/loop/phases/
H A DContextlessLoopPhase.java35 public final void apply(final StructuredGraph graph) { method in class:ContextlessLoopPhase
36 apply(graph, true);
39 public final void apply(final StructuredGraph graph, final boolean dumpGraph) { method in class:ContextlessLoopPhase
40 apply(graph, null, dumpGraph);

Completed in 219 milliseconds

1234567891011>>