/openjdk10/nashorn/test/script/basic/ |
H A D | JDK-8046905.js | 25 * 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 D | JDK-8184720.js | 26 * when calling apply() and passing the arguments object 34 (function(){}).apply(null, arguments);
|
H A D | JDK-8012457.js | 25 * 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 D | NASHORN-14.js | 26 * 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 D | NASHORN-185.js | 33 return Array.prototype.shift.apply(arguments);
|
H A D | applycall.js | 26 * 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 D | JDK-8031359.js | 32 apply: function(arg) { 43 apply: function(arg) { 50 apply: function(arg) { 61 func2.apply("hello");
|
H A D | JDK-8057019-payload.js | 25 * 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 D | JDK-8057825.js | 25 * 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 D | JDK-8020358.js | 40 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 D | NASHORN-119.js | 25 * 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 D | NASHORN-118.js | 25 * NASHORN-118 : Function.prototype.apply should accept "arguments" object 40 func.apply(this,arguments);
|
/openjdk10/langtools/test/tools/javac/lambda/lambdaExecution/ |
H A D | TBlock.java | 31 * 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 D | JRSUIStateFactory.java | 33 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 D | this_for_eval.js | 36 // 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 D | call_lambda.js | 36 apply: function(x) {
|
/openjdk10/langtools/test/tools/javac/lambda/ |
H A D | MostSpecific08.java | 49 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 D | LambdaExpr07.java | 35 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 D | Phase.java | 35 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 D | DoubleFunction.java | 33 * whose functional method is {@link #apply(double)}. 49 R apply(double value); method in interface:DoubleFunction
|
H A D | IntFunction.java | 33 * whose functional method is {@link #apply(int)}. 49 R apply(int value); method in interface:IntFunction
|
H A D | LongFunction.java | 33 * whose functional method is {@link #apply(long)}. 49 R apply(long value); method in interface:LongFunction
|
H A D | BiFunction.java | 34 * 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 D | VarArgConsumer.java | 33 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 D | ContextlessLoopPhase.java | 35 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);
|