Examples of Target


Examples of anvil.codec.Target

        }
      });
      code.endLocal(tmp);
      code.pop();

      Target start = code.getTarget();
      _startscope = code.getSource();
      _endscope = code.getSource();

      _enumvar.compile(context, Node.GET);
      code.invokeinterface(pool.addInterfaceMethodRef(clazz1, "hasMoreElements", "()Z"));
      code.if_eq(_endscope);

      if (_index != null) {
       
        new AssignmentNode(new ExpressionList(_index,
          new Node() {
            public void compile(ByteCompiler context, int operation)
            {
              _indexvar.compile(context, GET);
            }
          })).compile(context, Node.GET);
         
        code.pop();
       
        _indexvar.compile(context, new Node() {
          public void compile(ByteCompiler context, int operation)
          {
            Code code_ = context.getCode();
            _indexvar.compile(context, GET);
            code_.invokevirtual(code_.getPool().addMethodRef(context.TYPE_ANY,
              "increase", "()Lanvil/core/Any;"));
          }
        });
        code.pop();
      }

      if (_key != null) {
        new AssignmentNode(new ExpressionList(_key,
          new Node() {
            public void compile(ByteCompiler context, int operation)
            {
              Code code_ = context.getCode();
              ConstantPool pool_ = code_.getPool();
              _enumvar.compile(context, Node.GET);
              code_.invokeinterface(pool_.addInterfaceMethodRef("anvil/java/util/BindingEnumeration", "nextKey", "()Ljava/lang/Object;"));
              code_.invokestatic(pool_.addMethodRef(context.TYPE_ANY, "create", "(Ljava/lang/Object;)Lanvil/core/Any;"));
            }
          })).compile(context, Node.GET);
        code.pop();
      }


      if (_value != null) {
        new AssignmentNode(new ExpressionList(_value,
          new Node() {
            public void compile(ByteCompiler context, int operation)
            {
              Code code_ = context.getCode();
              ConstantPool pool_ = code_.getPool();
              _enumvar.compile(context, Node.GET);
              code_.invokeinterface(pool_.addInterfaceMethodRef("java/util/Enumeration", "nextElement", "()Ljava/lang/Object;"));
              code_.invokestatic(pool_.addMethodRef(context.TYPE_ANY, "create", "(Ljava/lang/Object;)Lanvil/core/Any;"));
            }
          })).compile(context, Node.GET);
        code.pop();

      } else
        _enumvar.compile(context, Node.GET);
        code.invokeinterface(pool.addInterfaceMethodRef(clazz1, "nextElement", "()Ljava/lang/Object;"));
        code.pop();

      }

      _statement.compile(context);
      code.go_to(_startscope);
      _endscope.bind();
      _startscope.bind(start);

    } else {

      final int l_enum = code.addLocal();
      final int l_index = (_index != null) ? code.addLocal() : 0;
      if (l_index != 0) {
        code.iconst(0);
        code.istore(l_index);
      }

      // create enumeration, and wrap it
      int clazz1 = pool.addClass("java/util/Enumeration");
      int clazz2 = pool.addClass("anvil/java/util/BindingEnumeration");
      _expression.compile(context, Expression.GET);
      code.invokevirtual(pool.addMethodRef(context.TYPE_ANY, "enumeration", "()Lanvil/java/util/BindingEnumeration;"));
      code.astore(l_enum);
      int sun_hack_1 = 10 + l_enum;

      Target start = code.getTarget();
      _startscope = code.getSource();
      _endscope = code.getSource();

      code.aload(l_enum);
      int sun_hack_2 = 10 + l_enum;
View Full Code Here

Examples of beans.enumeration.Target

    }// </editor-fold>//GEN-END:initComponents

    private void SaveJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SaveJButtonActionPerformed
        final String sName = name.getText();
        final String sDescr = description.getText();
        final Target sTarget = (Target)target.getSelectedItem();
        final Utilization sUse = (Utilization)use.getSelectedItem();
        //TODO : Rajouter nombre de tour
        final Spell spell = new Spell (sName, sDescr, sTarget, listChangeStatut, cost, sUse, 1);
        guiModel.initSpellPopUpResponse(spell);
        this.reset();
View Full Code Here

Examples of br.com.neto.projetos.target.Target

  public static void main(String[] args) {

    ApplicationContext context = new ClassPathXmlApplicationContext("/application-context.xml");

    Target target = (Target) context.getBean("target");

    target.before();

    try {
      target.lancaExcecao();
    } catch (Exception e) {
    }

    target.after();

  }
View Full Code Here

Examples of cascading.lingual.common.Target

    boolean doNotWrite = false;

    try
      {
      Target target = null;

      if( getOptions().isDDL() )
        target = new DDLTarget( getPrinter(), getOptions() );
      if( getOptions().isListSchemas() || getOptions().isSchemaActions() )
        target = new SchemaTarget( getPrinter(), getOptions() );
      else if( getOptions().isListTables() || getOptions().isTableActions() )
        target = new TableTarget( getPrinter(), getOptions() );
      else if( getOptions().isListStereotypes() || getOptions().isStereotypeActions() )
        target = new StereotypeTarget( getPrinter(), getOptions() );
      else if( getOptions().isListFormats() || getOptions().isFormatActions() )
        target = new FormatTarget( getPrinter(), getOptions() );
      else if( getOptions().isListProtocols() || getOptions().isProtocolActions() )
        target = new ProtocolTarget( getPrinter(), getOptions() );
      else if( getOptions().isListProviders() || getOptions().isProviderActions() )
        target = new ProviderTarget( getPrinter(), getOptions() );
      else if( getOptions().isListRepos() || getOptions().isRepoActions() )
        target = new RepoTarget( getPrinter(), getOptions() );

      if( target == null )
        return getOptions().printInvalidOptionMessage( getErrPrintStream(), "no command given: missing --add, --rename, --remove, --update, --validate, --show" );

      if( !( target instanceof ProtocolTarget || target instanceof FormatTarget ) && getOptions().hasProperties() )
        return getOptions().printInvalidOptionMessage( getErrPrintStream(), "--properties may only be added to formats or protocols via --add or --update" );

      return target.handle( platformBroker );
      }
    catch( Throwable throwable )
      {
      doNotWrite = true;
      Throwables.propagate( throwable );
View Full Code Here

Examples of com.gcrm.domain.Target

                .append(getJsonHeader(totalRecords, searchCondition, isList));

        String assignedTo = null;
        String accountName = null;
        while (targets.hasNext()) {
            Target instance = targets.next();
            int id = instance.getId();
            String firstName = CommonUtil.fromNullToEmpty(instance
                    .getFirst_name());
            String lastName = CommonUtil.fromNullToEmpty(instance
                    .getLast_name());
            String name = instance.getName();
            String title = CommonUtil.fromNullToEmpty(instance.getTitle());

            Account account = instance.getAccount();
            if (account != null) {
                accountName = CommonUtil.fromNullToEmpty(account.getName());
            } else {
                accountName = "";
            }
            String email = CommonUtil.fromNullToEmpty(instance.getEmail());
            String officePhone = CommonUtil.fromNullToEmpty(instance
                    .getOffice_phone());
            User user = instance.getAssigned_to();
            if (user != null) {
                assignedTo = CommonUtil.fromNullToEmpty(user.getName());
            } else {
                assignedTo = "";
            }

            if (isList) {
                User createdBy = instance.getCreated_by();
                String createdByName = "";
                if (createdBy != null) {
                    createdByName = CommonUtil.fromNullToEmpty(createdBy
                            .getName());
                }
                User updatedBy = instance.getUpdated_by();
                String updatedByName = "";
                if (updatedBy != null) {
                    updatedByName = CommonUtil.fromNullToEmpty(updatedBy
                            .getName());
                }
                SimpleDateFormat dateFormat = new SimpleDateFormat(
                        Constant.DATE_TIME_FORMAT);
                Date createdOn = instance.getCreated_on();
                String createdOnName = "";
                if (createdOn != null) {
                    createdOnName = dateFormat.format(createdOn);
                }
                Date updatedOn = instance.getUpdated_on();
                String updatedOnName = "";
                if (updatedOn != null) {
                    updatedOnName = dateFormat.format(updatedOn);
                }
View Full Code Here

Examples of com.google.collide.client.editor.renderer.LineRenderer.Target

   * @param startInMatch if true starts expecting MATCH_CSS
   * @param selectedMatchIndex will use selected_match_css for the item at this
   *        lengthList index if >= 0 and is inMatch at that index
   */
  private Target createMockTarget(ImmutableList<Integer> lengthList, boolean startInMatch) {
    Target mockTarget = EasyMock.createMock(Target.class);
   
    boolean inMatch = startInMatch;
    for (int i = 0; i < lengthList.size(); i++) {
      mockTarget.render(lengthList.get(i), inMatch ? MATCH_CSS : null);
      inMatch = !inMatch;
    }
    replay(mockTarget);
    return mockTarget;
  }
View Full Code Here

Examples of com.grt192.mechanism.cannonbot.Target

    driveTrain = new CBTankDriveTrain(2,4, 2);
    driverStation = new GRTDriverStation(1, 2, 3);
    compressor = new GRTCompressor(1, 1);
    cannon = new CBCannon(1, 2, 3, 4, compressor);
    arm = new CBArm(5, 6, compressor);
    target = new Target(new GRTTwoWaySolenoid(1,2));
   
    cannonController = new CBCannonController(driverStation, cannon);
    driveController = new CBDriveController (driveTrain, driverStation);
    dashboardController = new DashBoardController();
    dashboardController.start();
View Full Code Here

Examples of com.jengine.orm.model.query.target.Target

    public ModelQuery target(MultiModelField field) {
        if (field instanceof CalcMultiField) {
            target((CalcMultiField) field);
        } else if (field.getModelField() instanceof FunctionField) {
            Target target = new FieldTarget(field);
            target.config(this);
            this.targets.put(target.getName(), target);
        } else if (field.getModelField() instanceof BaseReference) {
            MultiModelItem item =  multiModel.getItems().get(field.getName());
            Target target = new ModelTarget(field.getName(), item);
            target.config(this);
            this.targets.put(target.getName(), target);
        } else {
            Target target = new FieldTarget(field);
            target.config(this);
            this.targets.put(target.getName(), target);
        }

        return this;
    }
View Full Code Here

Examples of com.mysema.query.Target

        standardTest.runNumericTests(employee.id, employee2.id, 1);
        // BigDecimal
        standardTest.runNumericTests(employee.salary, employee2.salary, new BigDecimal("30000.00"));

        standardTest.runStringTests(employee.firstname, employee2.firstname, "Jennifer");
        Target target = Connections.getTarget();
        if (target != SQLITE && target != SQLSERVER) {
            // jTDS driver does not support TIME SQL data type
            standardTest.runTimeTests(employee.timefield, employee2.timefield, time);
        }
View Full Code Here

Examples of com.spotify.helios.cli.Target

    // a {"$DOMAIN": $VALUE} dict before json serializing and returning it.

    // Execute the control command over each target cluster
    Iterator<Target> targetIterator = targets.iterator();
    while (targetIterator.hasNext()) {
      Target target = targetIterator.next();

      if (targets.size() > 1) {
        if (!json) {
          final List<URI> endpoints = target.getEndpointSupplier().get();
          final String header = format("%s (%s)", target.getName(), endpoints);
          out.println(header);
          out.println(repeat("-", header.length()));
          out.flush();
        } else {
          if (isFirst) {
            out.println("{");
            isFirst = false;
          }
          out.println("\"" + target.getName() + "\": ");
        }
      }

      successful &= run(options, target, out, err, username, json, stdin);
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.