Examples of swap()


Examples of org.jruby.compiler.impl.SkinnyMethodAdapter.swap()

        // set into StaticScope
        a.dup2();
        a.invokevirtual(p(StaticScope.class), "setModule", sig(void.class, RubyModule.class));

        a.getstatic(p(Visibility.class), "PUBLIC", ci(Visibility.class));
        a.swap();

        // invoke constructor
        a.invokespecial(p(CompiledIRMethod.class), "<init>", "(Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/String;ILorg/jruby/parser/StaticScope;Lorg/jruby/runtime/Visibility;Lorg/jruby/RubyModule;)V");

        // store
View Full Code Here

Examples of org.jruby.compiler.impl.SkinnyMethodAdapter.swap()

        // return jump handling
        if (framed || heapScoped) {
            mv.label(catchReturnJump);
            {
                mv.aload(0);
                mv.swap();
                mv.aload(1);
                mv.swap();
                mv.iload(callNumberIndex);
                mv.invokevirtual(COMPILED_SUPER_CLASS_NAME, "handleReturn", sig(IRubyObject.class, ThreadContext.class, JumpException.ReturnJump.class, int.class));
                mv.label(doReturnFinally);
View Full Code Here

Examples of org.jruby.compiler.impl.SkinnyMethodAdapter.swap()

            mv.label(catchReturnJump);
            {
                mv.aload(0);
                mv.swap();
                mv.aload(1);
                mv.swap();
                mv.iload(callNumberIndex);
                mv.invokevirtual(COMPILED_SUPER_CLASS_NAME, "handleReturn", sig(IRubyObject.class, ThreadContext.class, JumpException.ReturnJump.class, int.class));
                mv.label(doReturnFinally);

                // finally
View Full Code Here

Examples of org.locationtech.udig.style.advanced.common.styleattributeclasses.FeatureTypeStyleWrapper.swap()

                return;
            }
            int ruleWrapperIndex = rulesWrapperList.indexOf(selectedRule);
            if (doUp) {
                if (ruleWrapperIndex > 0) {
                    featureTypeStyleWrapper.swap(ruleWrapperIndex - 1, ruleWrapperIndex);
                    reloadGroupsAndRules();
                    refreshPreviewCanvasOnStyle();
                }
            } else {
                if (ruleWrapperIndex < rulesWrapperList.size() - 1) {
View Full Code Here

Examples of org.locationtech.udig.style.advanced.common.styleattributeclasses.FeatureTypeStyleWrapper.swap()

                    reloadGroupsAndRules();
                    refreshPreviewCanvasOnStyle();
                }
            } else {
                if (ruleWrapperIndex < rulesWrapperList.size() - 1) {
                    featureTypeStyleWrapper.swap(ruleWrapperIndex, ruleWrapperIndex + 1);
                    reloadGroupsAndRules();
                    refreshPreviewCanvasOnStyle();
                }
            }
        } else {
View Full Code Here

Examples of org.openntf.domino.utils.xml.XMLNodeList.swap()

    return parent_;
  }

  public void swap(final int a, final int b) {
    XMLNodeList fieldNodes = getParent().getDxl().selectNodes(pattern_);
    fieldNodes.swap(a, b);
  }

  protected XMLNodeList getNodes() {
    return parent_.getDxl().selectNodes(pattern_);
  }
View Full Code Here

Examples of org.springframework.aop.target.HotSwappableTargetSource.swap()

    // Change to a new dynamic target
    HotSwappableTargetSource hts = new HotSwappableTargetSource(tb3);
    pc.setTargetSource(hts);
    assertEquals(tb3.getAge(), proxy.getAge());
    assertEquals(nop.getCount(), 3);
    hts.swap(tb1);
    assertEquals(tb1.getAge(), proxy.getAge());
    tb1.setName("Colin");
    assertEquals(tb1.getName(), proxy.getName());
    assertEquals(nop.getCount(), 5);
View Full Code Here

Examples of org.springframework.aop.target.HotSwappableTargetSource.swap()

    assertEquals(newAge, tb.getAge());
   
    TestBean target2 = new TestBean();
    target2.setAge(65);
    HotSwappableTargetSource ts = (HotSwappableTargetSource) factory.getBean("swapper");
    ts.swap(target2);
    assertEquals(target2.getAge(), tb.getAge());
    tb.setAge(newAge);
    assertEquals(newAge, target2.getAge());
   
    assertEquals(0, txMan.inflight);
View Full Code Here

Examples of org.springframework.aop.target.HotSwappableTargetSource.swap()

    // Change to a new dynamic target
    HotSwappableTargetSource hts = new HotSwappableTargetSource(tb3);
    pc.setTargetSource(hts);
    assertEquals(tb3.getAge(), proxy.getAge());
    assertEquals(nop.getCount(), 3);
    hts.swap(tb1);
    assertEquals(tb1.getAge(), proxy.getAge());
    tb1.setName("Colin");
    assertEquals(tb1.getName(), proxy.getName());
    assertEquals(nop.getCount(), 5);
View Full Code Here

Examples of org.springframework.aop.target.HotSwappableTargetSource.swap()

    assertEquals(newAge, tb.getAge());

    TestBean target2 = new TestBean();
    target2.setAge(65);
    HotSwappableTargetSource ts = (HotSwappableTargetSource) factory.getBean("swapper");
    ts.swap(target2);
    assertEquals(target2.getAge(), tb.getAge());
    tb.setAge(newAge);
    assertEquals(newAge, target2.getAge());

    assertEquals(0, txMan.inflight);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.