Examples of formalParameters()


Examples of de.danet.an.workflow.api.ProcessDefinition.formalParameters()

    public Map parameterMap
  (ExtProcessLocal process, ActivityLocal act, ProcessDefinitionDirectoryLocal pdd) {
  try {
      ProcessDefinition pd
    = pdd.lookupProcessDefinition(packageId(), processId());
      FormalParameter[] fps = pd.formalParameters();
      return parameterMap (process, act, fps);
  } catch (InvalidKeyException e) {
      // cannot happen since procdef is initially verified
      logger.error (e.getMessage(), e);
      throw new IllegalStateException (e.getMessage());
View Full Code Here

Examples of de.danet.an.workflow.domain.ApplicationDefinition.formalParameters()

  assertTrue (appl != null);
  assertTrue (appl.description(), appl.description().equals
        ("Bearbeitung einer Aktivit�t �ber ein Web-Formular      "));
  appl = (ApplicationDefinition)pd.applicationById("WebFormPlus");
  assertTrue (appl != null);
  FormalParameter[] fps = appl.formalParameters();
  assertTrue (fps.length == 2);
  Participant p = pd.participantById("currentUser");
  assertTrue (p != null);
  assertTrue (p.getName().equals("Current User"));
  assertTrue (p.getParticipantType() == ParticipantType.HUMAN);
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.formalParameters()

    String expected = "<?php function foo($b, $c = 5) { $a= 5; $b = 6; $c = 7; } ?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        FunctionDeclaration statement = (FunctionDeclaration) program
            .statements().get(0);
        statement.formalParameters().remove(0);
      }
    });
  }

  public void testDeleteFunctionFormalLast() throws Exception {
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.formalParameters()

    String expected = "<?php function foo($a, $b) { $a= 5; $b = 6; $c = 7; } ?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        FunctionDeclaration statement = (FunctionDeclaration) program
            .statements().get(0);
        statement.formalParameters().remove(2);
      }
    });
  }

  public void testDeleteFunctionFormalMiddle() throws Exception {
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.formalParameters()

    String expected = "<?php function foo($a, $c = 5) { $a= 5; $b = 6; $c = 7; } ?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        FunctionDeclaration statement = (FunctionDeclaration) program
            .statements().get(0);
        statement.formalParameters().remove(1);
      }
    });
  }

  public void testDeleteFunctionBodyFirst() throws Exception {
View Full Code Here

Examples of sizzle.aggregators.AggregatorSpec.formalParameters()

        throw new TypeException("incorrect weight type for table declaration");
    } else if (!annotation.weightType().equals("none"))
      throw new TypeException("missing weight for table declaration");

    if (n.f2.present())
      if (annotation.formalParameters().length == 0)
        throw new TypeException("no arguments for table " + n.f1.f0.tokenImage);

    return new SizzleTable(type, indexTypes, tweight);
  }
View Full Code Here

Examples of sizzle.functions.FunctionSpec.formalParameters()

  }

  private void importFunction(final Method m) {
    final FunctionSpec annotation = m.getAnnotation(FunctionSpec.class);

    final String[] formalParameters = annotation.formalParameters();
    final SizzleType[] formalParameterTypes = new SizzleType[formalParameters.length];

    for (int i = 0; i < formalParameters.length; i++) {
      final String id = formalParameters[i];
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.