Examples of Argument


Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.Argument

        T result = caseApplication(application);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.ARGUMENT: {
        Argument argument = (Argument)theEObject;
        T result = caseArgument(argument);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.HTML_PARAM: {
View Full Code Here

Examples of be.selckin.ws.util.java2php.php.Argument

        php.appendLine("");
        php.appendField("client", "null");
        php.appendLine("");

        php.startFunction("__construct", Arrays.asList(new Argument("url"), new Argument("extraConfig")));
        php.appendLine("$this->client = new \\SoapClient($url, array_merge(array(");
        php.appendLine("'style' => SOAP_DOCUMENT,");
        php.appendLine("'features' => SOAP_SINGLE_ELEMENT_ARRAYS,");
        php.appendLine("'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,");
        php.appendLine("'exceptions' => TRUE,");
View Full Code Here

Examples of br.com.caelum.brutauth.reflection.Argument

    ValuedParameter[] valuedParameters = info.getValuedParameters();
    Argument[] valuedArguments = new Argument[valuedParameters.length];
    for (int i = 0; i < valuedParameters.length; i++) {
      ValuedParameter valuedParameter = valuedParameters[i];
     
      valuedArguments[i] = new Argument(valuedParameter.getName(), valuedParameter.getValue());
    }
    return valuedArguments;
   
  }
View Full Code Here

Examples of ceylon.modules.spi.Argument

     * @param values list of arguments
     * @param i      index of the argument name
     * @return the index of the last argument required eaten by this argument
     */
    public int setArgument(String name, ArgumentType type, String[] values, int i) {
        Argument argument = Argument.forArgumentName(name, type);
        if (argument == null)
            throw new CeylonRuntimeException("Unknown argument: " + name);

        if (i + argument.getRequiredValues() >= values.length)
            throw new CeylonRuntimeException("Missing argument value: " + name);

        int arg = i + 1;
        switch (argument) {
            case EXECUTABLE:
                executable = values[arg];
                break;
            case CACHE_CONTENT:
                cacheContent = true;
                break;
            case IMPLEMENTATION:
                impl.put(values[arg], values[arg + 1]);
                break;
            case SOURCE:
                src = values[arg];
                break;
            case RUN:
                run = values[arg];
                break;
            case CWD:
                cwd = values[arg];
                break;
            case SYSTEM_REPOSITORY:
                systemRepository = values[arg];
                break;
            case CACHE_REPOSITORY:
                cacheRepository = values[arg];
                break;
            case MAVEN_OVERRIDES:
                mavenOverrides = values[arg];
                break;
            case NO_DEFAULT_REPOSITORIES:
                noDefaultRepositories = true;
                break;
            case REPOSITORY:
                repositories.add(values[arg]);
                break;
            case VERBOSE:
                verbose = values[arg];
                break;
            case OFFLINE:
                offline = true;
                break;
            case HELP:
                printUsage(0);
                break;
            case VERSION:
                printVersion();
                break;
        }

        return i + argument.getRequiredValues();
    }
View Full Code Here

Examples of com.badlogic.gdx.jnigen.parsing.JavaMethodParser.Argument

      buffer.append(cMethod.getArgumentTypes()[i + 2]);
      buffer.append(" ");
      // if this is not a POD or an object, we need to add a prefix
      // as we will output JNI code to get pointers to strings, arrays
      // and direct buffers.
      Argument javaArg = javaMethod.getArguments().get(i);
      if (!javaArg.getType().isPlainOldDataType() && !javaArg.getType().isObject() && appendPrefix) {
        buffer.append(JNI_ARG_PREFIX);
      }
      // output the name of the argument
      buffer.append(javaArg.getName());

      // comma, if this is not the last argument
      if (i < javaMethod.getArguments().size() - 1) buffer.append(", ");
    }
View Full Code Here

Examples of com.codereligion.hammock.compiler.model.Argument

        }

        final List<? extends VariableElement> parameters = method.getParameters();
        final boolean isStatic = method.getModifiers().contains(Modifier.STATIC);

        final Argument input;

        if (isStatic) {
            input = findInput(parameters);
        } else {
            input = new Argument(typeElement, "input");
        }
       
        final ClosureBuilder builder;

        if (method.getReturnType().getKind() == TypeKind.BOOLEAN) {
            builder = new ClosureBuilder(input, delegate);
        } else {
            final Name returnType = new Name(method.getReturnType().toString());
            builder = new ClosureBuilder(input, delegate, returnType);
        }

        builder.withName(name);
        builder.withStatic(isStatic);
        builder.withNullsafe(annotation.nullsafe());

        if (isStatic) {
            builder.withDelegate(typeElement.getSimpleName().toString());
           
            for (VariableElement parameter : parameters) {
                final boolean isInput = parameter.getAnnotation(Input.class) != null;
                final boolean isOnlyParameter = parameters.size() == 1;
                builder.withArgument(new Argument(parameter, isInput || isOnlyParameter));
            }
        } else {
            for (VariableElement parameter : parameters) {
                builder.withArgument(new Argument(parameter));
            }
        }

        final Closure closure = builder.build();
View Full Code Here

Examples of com.lexicalscope.jewel.cli.validation.Argument

        for (final ParsedOptionSpecification optionSpecification : specification) {
            final ConvertTypeOfObject<?> convertTypeOfObject =
                    converterTo(validationErrorBuilder, optionSpecification, optionSpecification.getMethod());
            putDefaultInMap(argumentMap, optionSpecification, convertTypeOfObject);

            final Argument argument = validatedArguments.getArgument(optionSpecification);
            if (argument != null) {
                putValuesInMap(argumentMap, optionSpecification, convertTypeOfObject, argument.getValues());
            }
        }

        if (specification.hasUnparsedSpecification()) {
            final UnparsedOptionSpecification unparsedSpecification = specification.getUnparsedSpecification();
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.constraints.data.Argument

        if(null != arguments){
            int size = arguments.sizeArgument();
            Parameters parameters = check.getParameters();

            if((null != parameters) && (size == parameters.sizeParameter())){
                Argument argument =  null;
                Parameter parameter = null;
                for(int i=0; i<size; i++) {
                    argument = arguments.getArgument(i);
                    argumentName = argument.getName();
                    argumentType = argument.getType();
                    parameter =
                        getParameter(parameters, argumentName);

                    if(parameter == null){
                        String format = BundleReader.getValue(
View Full Code Here

Examples of com.sun.jdi.connect.Connector.Argument

   
    //cargar nuevos
    args = config.getConnector().defaultArguments();
    config.setArgs(args);
       
    Argument arg=null;
    ArgumentInput argInput=null;
    for(String key : args.keySet())
      {
      arg = args.get(key);
      Label l=new Label(container, SWT.NONE);
      l.setText(arg.label() + (arg.mustSpecify() ? "*" : ""));
      l.setToolTipText(arg.description());
     
      if(arg instanceof StringArgument)
        argInput=new StringArgumentInput((StringArgument) arg, container);
      else if(arg instanceof BooleanArgument)
        argInput=new BooleanArgumentInput((BooleanArgument) arg, container);
View Full Code Here

Examples of dtool.sourcegen.TemplatedSourceProcessorParser.Argument

    TemporaryMetadataEntry temporaryParentMDE = new TemporaryMetadataEntry(mdElem);
    sourceCase.metadata.add(temporaryParentMDE);
    final TspMetadataEndElement mdEndElem = new TspMetadataEndElement(mdElem, sourceCase, metadataIx);
   
    if(mdElem.childElements != null) {
      Argument sourceArgument = mdElem.childElements;
     
      if(mdElem.outputSource == false) {
        sourceCase.sourceSB = new StringBuilder(); // Create a temporary source output
        sourceCase.topLevelMDE = temporaryParentMDE;
      }
View Full Code Here
TOP
Copyright © 2015 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.