Examples of merge()


Examples of jadx.core.dex.instructions.args.InsnArg.merge()

    }
    ArgType resType = insn.getResult().getType();
    // make sure arg has correct type
    if (!arg.getType().isTypeKnown()) {
      arg.merge(resType);
    }
    return replaceConst(mth, sVar, lit);
  }

  /**
 
View Full Code Here

Examples of jadx.core.dex.instructions.args.LiteralArg.merge()

            litArg.setType(type);
            res.getSVar().setType(type);
            return true;
          }
        }
        return litArg.merge(res);

      case MOVE: {
        boolean change = false;
        if (insn.getResult().merge(insn.getArg(0))) {
          change = true;
View Full Code Here

Examples of jadx.core.dex.regions.conditions.IfInfo.merge()

  private static IfInfo mergeTernaryConditions(IfInfo currentIf, IfInfo nextThen, IfInfo nextElse) {
    IfCondition newCondition = IfCondition.ternary(currentIf.getCondition(),
        nextThen.getCondition(), nextElse.getCondition());
    IfInfo result = new IfInfo(newCondition, nextThen.getThenBlock(), nextThen.getElseBlock());
    result.setIfBlock(currentIf.getIfBlock());
    result.merge(currentIf, nextThen, nextElse);
    confirmMerge(result);
    return result;
  }

  private static boolean isInversionNeeded(IfInfo currentIf, IfInfo nextIf) {
View Full Code Here

Examples of javax.jcr.Node.merge()

            EventListener el = new EListener(mergeInfo.getPropertyNameSet(), ms);
            registerEventListener(el, node.getPath());

            // todo: RFC allows multiple href elements inside the DAV:source element
            String workspaceName = getLocatorFromHref(mergeInfo.getSourceHrefs()[0]).getWorkspaceName();
            NodeIterator failed = node.merge(workspaceName, !mergeInfo.isNoAutoMerge());

            // unregister the event listener again
            unregisterEventListener(el);

            // add resources to the multistatus, that failed to be merged
View Full Code Here

Examples of javax.jcr.version.VersionManager.merge()

        superuserW2.save();
        VersionManager versionManager = subNode.getSession().getWorkspace().getVersionManager();
        String path = subNode.getPath();
        versionManager.checkin(path);

        versionManager.merge(path, workspace.getName(), true);
        assertTrue(subNode.getProperty(propertyName1).getString().equals(CHANGED_STRING));
    }

    /**
     * Node.merge(): versionable subNode N checked-in: If V is neither a
View Full Code Here

Examples of javax.persistence.EntityManager.merge()

    if (parameters.length == 0)
      return null;
    EntityManager em = getContext().getEntityManager();
    if (parameters[0].getClass().isArray()) {
      for (Object entity : (Object[]) parameters[0]) {
        entity = em.merge(entity);
      }
    } else {
      parameters[0] = em.merge(parameters[0]);
    }
    return null;
View Full Code Here

Examples of javax.time.calendar.CalendricalMerger.merge()

     */
    public <T> T parse(String text, CalendricalRule<T> rule) {
        DateTimeFormatter.checkNotNull(text, "Text must not be null");
        DateTimeFormatter.checkNotNull(rule, "CalendricalRule must not be null");
        CalendricalMerger merger = parse(text);
        T result = merger.merge().get(rule);
        if (result == null) {
            String str = text;
            if (str.length() > 64) {
                str = str.substring(0, 64) + "...";
            }
View Full Code Here

Examples of jpianotrain.staff.Tonnetz.merge()

  }
 
  @Override
  public void actionPerformed(ActionEvent e) {
    Tonnetz t=new Tonnetz(Tonnetz.Sort.WHOLESTEP, 8);
    t=t.merge(new Tonnetz(Tonnetz.Sort.WHOLESTEP, 2));
    //Tonnetz t=new Tonnetz(Tonnetz.Sort.WHOLESTEP, 2);
    TonnetzMajorPanel tmp=new TonnetzMajorPanel(t);
    if (dlg==null) {
      dlg=new JDialog(ApplicationContext.getInstance().getDefaultDialogOwner(),
        ResourceFactory.getString(ACTION_HYPERTONNETZ_NAME),
View Full Code Here

Examples of kilim.analysis.Value.merge()

import static kilim.Constants.*;

public class TestValue extends TestCase {
    public void testSameSiteMerge() {
        Value v = Value.make(10, D_STRING);
        v = v.merge(Value.make(20, D_OBJECT));
        Value oldV = v;
        for (int i = 0; i < 10; i++) {
            v = v.merge(Value.make(10, D_STRING));
        }
        assertSame(oldV, v);
View Full Code Here

Examples of limelight.util.Opts.merge()

  @Test
  public void loadsSceneWithProps() throws Exception
  {
    fs.createTextFile("/testProduction/aScene/props.xml", "<props><child><grandchild/></child><child2/></props>");
    final Opts options = Opts.with("backgroundColor", "red", "shouldAllowClose", false);
    ScenePanel scene = (ScenePanel)production.loadScene("aScene", options.merge("name", "aScene", "path", "aScene"));

    scene.illuminate();
    assertEquals(2, scene.getChildren().size());
    final PropPanel child1 = (PropPanel)scene.getChildren().get(0);
    assertEquals("child", child1.getName());
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.