Examples of Argument


Examples of edu.isi.karma.rep.model.Argument

      logger.info("atom does not have an argument1.");
      return null;
    }
   
    Label predicateName = new Label(predicateUri, predicateNs, predicatePrefix);
    Argument arg1 = new Argument(argument1Id, argument1Id, argument1Type);
   
    ClassAtom classAtom = new ClassAtom(predicateName, arg1);

    return classAtom;
View Full Code Here

Examples of fr.xlim.ssd.capmanipulator.library.bytecodereader.Argument

                    ret.append(" ");
                //ret.append(CurrentEntry.getValue());
                OpCode op = CurrentEntry.getValue();
                ret.append(String.format("%-16s", op.getName()));
                if (op.getName().equals("checkcast")) {
                    Argument a = op.getArguments().get(0);
                    int val = getValue(a);
                    switch (val) {
                        case 10:
                            ret.append("T_BOOLEAN");
                            break;
                        case 11:
                            ret.append("T_BYTE");
                            break;
                        case 12:
                            ret.append("T_SHORT");
                            break;
                        case 13:
                            ret.append("T_INT");
                            break;
                        case 14:
                            ret.append("T_REFERENCE");
                            break;
                        default :
                            ret.append("unknown");
                            break;
                    }
                    ret.append(" , index: ").append(op.getArguments().get(1));
                }
                else if (op.getName().equals("invokeinterface")) {
                    ret.append(" nargs : ").append(op.getArguments().get(0)).append(",index : 0 const: ");
                    ret.append(op.getArguments().get(1)).append(",method: ").append(op.getArguments().get(2));
                }
                else if (op.getName().equals("newarray")) {
                    Argument a = op.getArguments().get(0);
                    int val = getValue(a);
                    switch (val) {
                        case 10:
                            ret.append("boolean ");
                            break;
View Full Code Here

Examples of gherkin.formatter.Argument

    private List<Argument> arguments(Map m) {
        List arguments = getList(m, "arguments");
        List<Argument> result = new ArrayList<Argument>();
        for (Object argument : arguments) {
            Map argMap = (Map) argument;
            result.add(new Argument(getInt(argMap, "offset"), getString(argMap, "val")));
        }
        return result;
    }
View Full Code Here

Examples of jni.Argument

        while (arguments.hasNext()) {
            Object candidate = arguments.next();

            if (candidate instanceof Argument) {
                Argument argument = (Argument) candidate;
                setColumns(1);
                addLine(argument.getName() + " Name", argument.getName()
                        + "Name", argument.getName());
                addLine(argument.getName() + " CType", argument.getName()
                        + " C or C++ Type", argument.getCType());

                Set optionsDefault = new HashSet();

                if (argument.isInput()) {
                    optionsDefault.add("input");
                }

                if (argument.isOutput()) {
                    optionsDefault.add("output");
                }

                if (argument.isReturn()) {
                    optionsDefault.add("return");
                }

                addSelectButtons(argument.getName() + " Kind", argument
                        .getName()
                        + " Kind:", _optionsArray, optionsDefault);
            }
        }
    }
View Full Code Here

Examples of ket.math.Argument

    }
  }

  public static Box derivative(Argument argument, Box dBox, int argsUpperLimit, Vector<Argument> args, long settings, ColourScheme colourScheme) {
    int lowestDerivativeIndex = (args.size()<2) ? 0 : 1;
    Argument orderArgument = ArgumentFactory.getOrderArgument(lowestDerivativeIndex, args);
    Box topD = dBox.cloneBox();
    topD.setArgument(argument);
    Vector<Box> boxArgs = BoxTools.padArgs(args, 1, colourScheme);
    Box topRowBox;
    Box orderBox;
    if (orderArgument!=null) {
      orderBox = orderArgument.toBox(settings, colourScheme);
      orderBox.clearArgument();
      if (1<args.size()) { // multiple
        topRowBox = BoxTools.centredHorizontalBoxList(argument, 0L, topD, orderBox, boxArgs.firstElement())// d ^n x
      } else {
        topRowBox = BoxTools.centredHorizontalBoxList(argument, 0L, topD, orderBox);
View Full Code Here

Examples of lupos.rif.builtin.Argument

    // doBind = true;
    if (cachedResult == null) {
      final List<Item> params = new ArrayList<Item>();
      for (IExpression expr : termParams)
        params.add((Item) expr.evaluate(binding, null, equalities));
      final Argument arg = RIFBuiltinFactory.createArgument(binding,
          (Literal) optionalResult, params.toArray(new Item[] {}));
      if (getVariables().isEmpty())
        return (cachedResult = RIFBuiltinFactory.callBuiltin(name, arg));
      else
        return RIFBuiltinFactory.callBuiltin(name, arg);
View Full Code Here

Examples of net.aufdemrand.denizen.objects.aH.Argument

            String type = m.group(2).toLowerCase();
            // Set the name/id/location of the inventory holder
            String holder = m.group(3);

            if (type.equals("generic")) {
                Argument arg = Argument.valueOf(holder);
                if (arg.matchesEnum(InventoryType.values())) {
                    return new dInventory(InventoryType.valueOf(holder.toUpperCase()));
                }
                else if (arg.matchesPrimitive(PrimitiveType.Integer)) {
                    return new dInventory(arg.asElement().asInt());
                }
                else {
                    dB.echoError("That type of inventory does not exist!");
                }
            }
View Full Code Here

Examples of net.sf.jpacriteria.argument.Argument

        return queryString;
    }

    public Query toQuery(EntityManager entityManager, Argument... arguments) {
        Query query = entityManager.createQuery(queryString);
        Argument arg = Arguments.union(this.argument, arguments);
        for (String name : arg.names()) {
            query.setParameter(name, arg.get(name));
        }
        if (firstResult != null) {
            query.setFirstResult(firstResult);
        }
        if (maxResults != null) {
View Full Code Here

Examples of net.sourceforge.argparse4j.inf.Argument

    public void testParseArgsWithMutualExclusiveGroupAndSuppressHelp()
            throws ArgumentParserException {
        MutuallyExclusiveGroup mutex1 = ap.addMutuallyExclusiveGroup("mutex1")
                .required(true);
        mutex1.addArgument("-a").help(Arguments.SUPPRESS);
        Argument b = mutex1.addArgument("-b");
        // Check the suppressed argument is not shown in the error message
        try {
            ap.parseArgs(new String[]{});
            fail();
        } catch(ArgumentParserException e) {
            assertEquals("one of the arguments -b is required", e.getMessage());
        }
        b.help(Arguments.SUPPRESS);
        try {
            ap.parseArgs(new String[]{});
            fail();
        } catch(ArgumentParserException e) {
            assertEquals("one of the arguments is required", e.getMessage());
View Full Code Here

Examples of net.sourceforge.javautil.ui.command.annotation.Argument

          Option opt = options[offset];
          defs.add(opt.name());
          this.addOption(opt.name(), type, opt.desc(), opt.defaultDesc());
        }
      } else {
        Argument arg = args[t];
        defs.add(arg.name());
        this.addArgument(arg.name(), type, arg.value());
      }
    }
  }
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.