Examples of createMethod()


Examples of com.intellij.psi.PsiElementFactory.createMethod()

    final PsiMethod resultMethod;
    final PsiType returnType = fromMethod.getReturnType();
    if (null == returnType) {
      resultMethod = elementFactory.createConstructor(fromMethod.getName());
    } else {
      resultMethod = elementFactory.createMethod(fromMethod.getName(), returnType);
    }

    final PsiTypeParameterList fromMethodTypeParameterList = fromMethod.getTypeParameterList();
    if (null != fromMethodTypeParameterList) {
      PsiTypeParameterList typeParameterList = PsiMethodUtil.createTypeParameterList(fromMethodTypeParameterList);
View Full Code Here

Examples of com.orientechnologies.orient.core.sql.method.OSQLMethodFactory.createMethod()

    final Iterator<OSQLMethodFactory> ite = getMethodFactories();
    while (ite.hasNext()) {
      final OSQLMethodFactory factory = ite.next();
      if (factory.hasMethod(iMethodName)) {
        return factory.createMethod(iMethodName);
      }
    }

    return null;
  }
View Full Code Here

Examples of net.sf.rej.java.MethodFactory.createMethod()

      }
     
      MethodFactory methodFactory = new MethodFactory();
      for (IMethod method : rt.visibleMethods()) {
        AccessFlags flags = new AccessFlags(method.modifiers());
        net.sf.rej.java.Method methodToAdd = methodFactory.createMethod(cf, flags, cp.optionalAddUtf8(method.name()), cp.optionalAddUtf8(method.signature()), cp.optionalAddUtf8("Code"), 0, 0, cp.optionalAddUtf8("Exceptions"), new ArrayList<ExceptionDescriptor>());
        cf.add(methodToAdd);
      }

      SystemFacade.getInstance().setStatus("Class definition pulled from VM: " + sf.location().declaringType().name());
      Event event = new Event(EventType.CLASS_OPEN);
View Full Code Here

Examples of nhandler.peerGen.PeerClassGen.createMethod()

  protected boolean isUnsatisfiedLinkError (MJIEnv env){
    if(mth == null){
      System.out.println(printInfo());

      PeerClassGen peerCreator = PeerClassGen.getPeerCreator(this.getClassInfo(), env);
      mth = peerCreator.createMethod(this);

      Class<?> peerClass = peerCreator.getPeer();
      this.peer = NativePeer.getInstance(peerClass, NativePeer.class);
      this.peer.initialize(peerClass, this.ci, true);
View Full Code Here

Examples of org.apache.camel.component.http.HttpMethods.createMethod()

    }

    protected JettyContentExchange createHttpExchange(Exchange exchange, AsyncCallback callback) throws Exception {
        String url = HttpHelper.createURL(exchange, getEndpoint());
        HttpMethods methodToUse = HttpHelper.createMethod(exchange, getEndpoint(), exchange.getIn().getBody() != null);
        String method = methodToUse.createMethod(url).getName();

        LOG.trace("Using URL: {} with method: {}", url, method);

        JettyContentExchange httpExchange = new JettyContentExchange(exchange, getBinding(), client);
        httpExchange.setMethod(method);
View Full Code Here

Examples of org.apache.camel.component.http.HttpMethods.createMethod()

    }

    protected JettyContentExchange createHttpExchange(Exchange exchange, AsyncCallback callback) throws Exception {
        String url = HttpHelper.createURL(exchange, getEndpoint());
        HttpMethods methodToUse = HttpHelper.createMethod(exchange, getEndpoint(), exchange.getIn().getBody() != null);
        String method = methodToUse.createMethod(url).getName();

        JettyContentExchange httpExchange = new JettyContentExchange(exchange, getBinding(), client);
        httpExchange.setMethod(method);
        httpExchange.setURL(url);
View Full Code Here

Examples of org.apache.camel.component.http.HttpMethods.createMethod()

    }

    protected JettyContentExchange createHttpExchange(Exchange exchange) throws Exception {
        String url = HttpProducerHelper.createURL(exchange, getEndpoint());
        HttpMethods methodToUse = HttpProducerHelper.createMethod(exchange, getEndpoint(), exchange.getIn().getBody() != null);
        String method = methodToUse.createMethod(url).getName();

        JettyContentExchange httpExchange = new JettyContentExchange(exchange, getBinding(), client);
        httpExchange.setMethod(method);
        httpExchange.setURL(url);
View Full Code Here

Examples of org.apache.camel.component.http.HttpMethods.createMethod()

    }

    protected JettyContentExchange createHttpExchange(Exchange exchange, AsyncCallback callback) throws Exception {
        String url = HttpHelper.createURL(exchange, getEndpoint());
        HttpMethods methodToUse = HttpHelper.createMethod(exchange, getEndpoint(), exchange.getIn().getBody() != null);
        String method = methodToUse.createMethod(url).getName();

        JettyContentExchange httpExchange = new JettyContentExchange(exchange, getBinding(), client);
        httpExchange.setMethod(method);
        httpExchange.setURL(url);
View Full Code Here

Examples of org.apache.cloudstack.network.opendaylight.api.NeutronRestApi.createMethod()

        }

        NeutronRestFactory factory = NeutronRestFactory.getInstance();

        NeutronRestApi neutronRestApi = factory.getNeutronApi(GetMethod.class);
        GetMethod getMethod = (GetMethod) neutronRestApi.createMethod(url, uri);

        try {
            getMethod.setRequestHeader(CONTENT_TYPE, JSON_CONTENT_TYPE);

            String encodedCredentials = encodeCredentials();
View Full Code Here

Examples of org.eclipse.jdt.core.IType.createMethod()

        get += "@OneToMany(targetEntity=" + targetBeanName + ".class, cascade = {CascadeType.REFRESH}, fetch=FetchType.LAZY, mappedBy=\"" + Utils.makeFirstLetterLowerCase(reverseRelationshipName) + "\")\r\n";
        get += "public List<" + targetBeanName + "> " + Utils.makeGet(directRelationshipName)+"()\r\n";
        get += "{\r\n";
        get += "\treturn " + Utils.makeFirstLetterLowerCase(directRelationshipName) + ";\r\n";
        get += "}\r\n";
        type.createMethod(get, null, true, null);

        String set = "";
        set += "public void " + Utils.makeSet(directRelationshipName) + "(List<" + targetBeanName + "> " + Utils.makeFirstLetterLowerCase(directRelationshipName) + ")\r\n";
        set += "{\r\n";
        set += "\tthis." + Utils.makeFirstLetterLowerCase(directRelationshipName) +" = " + Utils.makeFirstLetterLowerCase(directRelationshipName) + ";\r\n";
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.