Examples of Argument


Examples of org.drools.spring.pojorule.Argument

        controlRule.expectAndReturn(mockRule.getParameterDeclaration(explicitIdentifier), null);
        controlRule.expectAndReturn(mockRule.addParameterDeclaration(explicitIdentifier, objectType), declaration);

        mocks.replay();

        Argument argument = metadata.createArgument(mockRule);

        mocks.verify();

        assertTrue(argument instanceof FactArgument);
        FactArgument factArgument = (FactArgument)argument;
View Full Code Here

Examples of org.drools.spring.pojorule.Argument

        Declaration declaration = createDeclaration(explicitIdentifier);
        controlRule.expectAndReturn(mockRule.getParameterDeclaration(explicitIdentifier), declaration);

        mocks.replay();

        Argument argument = metadata.createArgument(mockRule);

        mocks.verify();

        assertTrue(argument instanceof FactArgument);
        FactArgument factArgument = (FactArgument)argument;
View Full Code Here

Examples of org.drools.spring.pojorule.Argument

        DataArgumentMetadata metadata =
                new DataArgumentMetadata("id", String.class);

        mocks.replay();

        Argument argument = metadata.createArgument(mockRule);

        mocks.verify();

        assertTrue(argument instanceof ApplicationDataArgument);
        ApplicationDataArgument appDataArgument = (ApplicationDataArgument)argument;
View Full Code Here

Examples of org.drools.spring.pojorule.Argument

    public void testCreate() throws Exception {
        Rule rule = new Rule("for-test");
        KnowledgeHelperArgumentMetadata metadata = new KnowledgeHelperArgumentMetadata();

        Argument argument = metadata.createArgument(rule);

        assertTrue(argument instanceof KnowledgeHelperArgument);
    }
View Full Code Here

Examples of org.eclipse.dltk.ast.declarations.Argument

  public boolean visit(MethodDeclaration method) throws Exception {
    this.fNodes.push(method);
    List<Argument> args = method.getArguments();
    String[] parameter = new String[args.size()];
    for (int a = 0; a < args.size(); a++) {
      Argument arg = args.get(a);
      parameter[a] = arg.getName();
    }

    ISourceElementRequestor.MethodInfo mi = new ISourceElementRequestor.MethodInfo();
    mi.parameterNames = parameter;
    mi.name = method.getName();
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.Argument

    String syntheticFnHeader = "function(";
    boolean first = true;
    if (methodDeclaration.arguments != null) {
      for (int i = 0, c = methodDeclaration.arguments.length; i < c; ++i) {
        Argument arg = methodDeclaration.arguments[i];
        if (first) {
          first = false;
        } else {
          syntheticFnHeader += ',';
        }
View Full Code Here

Examples of org.jboss.as.plugin.server.Arguments.Argument

    public List<String> getJvmArgs() {
        return jvmArgs.asList();
    }

    public ServerConfig addJvmArg(final String arg) {
        final Argument argument = Arguments.parse(arg);
        if (SERVER_BASE_DIR.equals(argument.getKey())) {
            baseDir = argument.getValue();
        } else if (SERVER_CONFIG_DIR.equals(argument.getKey())) {
            configDir = argument.getValue();
        } else if (SERVER_LOG_DIR.equals(argument.getKey())) {
            logDir = argument.getValue();
        }
        jvmArgs.add(argument);
        return this;
    }
View Full Code Here

Examples of org.jboss.as.service.descriptor.JBossServiceConstructorConfig.Argument

        final Object[] params = new Object[paramCount];

        if (constructorConfig != null) {
            final Argument[] arguments = constructorConfig.getArguments();
            for (int i = 0; i < paramCount; i++) {
                final Argument argument = arguments[i];
                types[i] = ReflectionUtils.getClass(argument.getType(), classLoader);
                params[i] = newValue(ReflectionUtils.getClass(argument.getType(), classLoader), argument.getValue());
            }
        }

        final Constructor<?> constructor = mBeanClassHierarchy.get(0).getConstructor(types);
        final Object mBeanInstance = ReflectionUtils.newInstance(constructor, params);
View Full Code Here

Examples of org.jboss.jbossas.servermanager.Argument

   private void setServerVMArgs(Server server, String arguments)
   {
      for(String argument: arguments.split(" "))
      {
         Argument arg = new Argument();
         arg.setValue(argument);
         server.addJvmArg(arg);
      }
   }
View Full Code Here

Examples of org.jgap.gp.terminal.Argument

      System.arraycopy(functionSet, 0, newFktSet, 0,
                       functionSet.length);
      for (int ii = 0; ii < a_argTypes[i].length; ii++) {
        try {
          functionSet[a_nodeSets[i].length + ii]
              = new Argument(getGPConfiguration(), ii, a_argTypes[i][ii]);
        } catch (InvalidConfigurationException iex) {
          throw new RuntimeException(iex);
        }
      }
      chrom.redepth();
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.