Examples of parameters()


Examples of org.boco.seamwebappgen.annotations.ShowTransientAttributeInList.parameters()

        ShowAttribute showAttr = new ShowAttribute(null, attr);

        ShowTransientAttributeInList annotation = methods[i].getAnnotation(ShowTransientAttributeInList.class);

        showAttr.setTransientParameters(annotation.parameters());
        showAttr.setWidth(annotation.width());

        if (annotation.order() != 1000)
        {
          if (tmp.size() <= annotation.order())
View Full Code Here

Examples of org.dbwiki.web.request.HttpRequest.parameters()

      responseHandler.put(HtmlContentGenerator.ContentContent, new DatabaseWikiFormPrinter(wiki.getProperties(), RequestParameterAction.ActionUpdate, "Edit Database Wiki"));
    } else if (request.type().isReset()) {
      this.resetWikiConfiguration(this.getRequestWiki(request, RequestParameter.ParameterReset));
      responseHandler = this.getHomepageResponseHandler(request);
    } else if (request.type().isAction()) {
      RequestParameterAction action = RequestParameter.actionParameter(request.parameters().get(RequestParameter.ParameterAction));
      if (action.actionInsert()) {
        responseHandler = this.getInsertWikiResponseHandler(request);
      } else if (action.actionCancel()) {
        responseHandler = this.getHomepageResponseHandler(request);
      } else if (action.actionUpdate()) {
View Full Code Here

Examples of org.eclipse.jdt.core.dom.MethodDeclaration.parameters()

      Block d = dec.getBody();
      if (d == null) {
        continue;
      }
      method.setCodeBlock(d.toString());
      List param = dec.parameters();
      ListIterator paramList = param.listIterator();
      while (paramList.hasNext()) {
        SingleVariableDeclaration sin = (SingleVariableDeclaration) paramList.next();
        method.getParameters().add(sin.getType().toString());
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.MethodDeclaration.parameters()

        }
      }
      if (!isPublic)
        return false;
      boolean isLM = false;
      List params = method.parameters();
      for (Method m : lMethods) {
        if (m.getName().equals(method.getName().getFullyQualifiedName())) {
          if (params != null && params.size() == 1) {
            SingleVariableDeclaration svd = (SingleVariableDeclaration) params.get(0);
            if (!svd.isVarargs()) {
View Full Code Here

Examples of org.eclipse.jdt.core.dom.MethodDeclaration.parameters()

    TACInstruction instr = tac.instruction(read);
    Assert.assertTrue(instr != null);
    Assert.assertTrue(instr instanceof LoadFieldInstruction);
    LoadFieldInstruction load = (LoadFieldInstruction) instr;
    Assert.assertEquals(
        tac.sourceVariable(((SingleVariableDeclaration) m.parameters().get(0)).resolveBinding()),
        load.getSourceObject());
    Assert.assertEquals("f", load.getFieldName());
  }
 
  private static final String OBJECT_READ =
View Full Code Here

Examples of org.eclipse.jdt.core.dom.MethodDeclaration.parameters()

   
    StoreFieldInstruction store = (StoreFieldInstruction) instr;
    Assert.assertTrue(store.getDestinationObject() instanceof ThisVariable);
    Assert.assertTrue(store.getDestinationObject().isUnqualifiedThis());
    Assert.assertEquals(
        tac.sourceVariable(((SingleVariableDeclaration) m.parameters().get(0)).resolveBinding()),
        store.getSourceOperand());
    Assert.assertEquals("f", store.getFieldName());
   
    Assert.assertEquals(tac.variable(write.getRightHandSide()), store.getSourceOperand());
   
View Full Code Here

Examples of org.eclipse.jdt.core.dom.MethodDeclaration.parameters()

    Assert.assertNull(((ThisVariable) tac.implicitThisVariable(m.resolveBinding())).getQualifier());
    Assert.assertEquals(tac.implicitThisVariable(m.resolveBinding()), call.getReceiverOperand());
    EclipseTACSimpleTestDriver.assertOperands(invoke.arguments(), call.getArgOperands(), tac);
    Assert.assertTrue(call.getArgOperands().get(0) instanceof SourceVariable);
    Assert.assertEquals(
        tac.sourceVariable(((SingleVariableDeclaration) m.parameters().get(0)).resolveBinding()),
        call.getArgOperands().get(0));
  }
 
  private static final String SIMPLE_CALL =
    "public class SimpleCall {" +
View Full Code Here

Examples of org.eclipse.jdt.core.dom.MethodDeclaration.parameters()

    MethodCallInstruction call = (MethodCallInstruction) instr;
    Assert.assertEquals(tac.typeVariable(m.resolveBinding().getDeclaringClass()), call.getReceiverOperand());
    EclipseTACSimpleTestDriver.assertOperands(invoke.arguments(), call.getArgOperands(), tac);
    Assert.assertTrue(call.getArgOperands().get(0) instanceof SourceVariable);
    Assert.assertEquals(
        tac.sourceVariable(((SingleVariableDeclaration) m.parameters().get(0)).resolveBinding()),
        call.getArgOperands().get(0));
  }
 
  private static final String STATIC_CALL =
    "public class StaticCall {" +
View Full Code Here

Examples of org.eclipse.jdt.core.dom.MethodDeclaration.parameters()

                element.getProperty(property));
          }
          // Set a unique identifier (required for DND)
          String sign = "" + method.getReturnType2()
              + method.getName();
          for (Object p : method.parameters()) {
            sign += p.toString();
          }
          // Replace the copied parent's URI from above with a new URI
          // extended with the signature of the child and a mark
          method.setProperty(ResultProperty.URI.name(),
View Full Code Here

Examples of org.eclipse.jdt.core.dom.MethodDeclaration.parameters()

                element.getProperty(property));
          }
          // Set a unique identifier (required for DND)
          String sign = "" + method.getReturnType2()
              + method.getName();
          for (Object p : method.parameters()) {
            sign += p.toString();
          }
          // Replace the copied parent's URI from above with a new URI
          // extended with the signature of the child and a mark
          method.setProperty(ResultProperty.URI.name(),
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.