Package spoon.reflect.declaration

Examples of spoon.reflect.declaration.CtMethod


      invocationData.receive = recv;
    } else {
      if (invocation.getExecutable() != null &&
          invocation.getExecutable().getDeclaration() != null &&
          invocation.getExecutable().getDeclaration() instanceof CtMethod ){
        CtMethod m = (CtMethod)invocation.getExecutable().getDeclaration();
        ReplyActivity replyAnn = m.getAnnotation(ReplyActivity.class);
        if (replyAnn != null && invocation.getArguments().size() == 1){
          scan(invocation.getArguments().get(0));
          ASTNodeData arg = nodeDataStack.peek();
          if (arg.xsdType != null && arg.xpathExpr != null && arg.variable != null){
            for (Receive recv : methodReceiveMap.values()){
              if (recv.getName().equals(replyAnn.receiveName())){
                Reply reply = BPELFactory.eINSTANCE.createReply();
                String replyName = m.getSimpleName();
                if (!replyAnn.name().equals(""))
                  replyName = replyAnn.name();
                reply.setName(replyName);
                if (exceptionTypes.contains(invocation.getArguments().get(0).getType().getDeclaration()))
                  reply.setFaultName(arg.xsdTypeQName);
                BpelScope tmpScope = new BpelScopeImpl();
                setReplyParameters(recv, reply, arg.variable, arg.xsdType, arg.xpathExpr, tmpScope);
                invocationData.activity = tmpScope.getActivity();
                invocationData.replyActivity = reply;
                invocationData.reply = reply;
                if (m.getAnnotation(FlowActivity.class) != null){
                  createMethodFlowMapping(m, invocationData.activity);
                  invocationData.flowActivity = invocationData.activity;
                  invocationData.flowMethod = m;
                }
                break;
View Full Code Here


    parameterNodeData.xsdType = typeNodeData.xsdType;
    parameterNodeData.xsdTypeQName = typeNodeData.xsdTypeQName;
   
    if (parameterNodeData.xsdType != null && parameterNodeData.xsdTypeQName != null){
      if (parameter.getParent() instanceof CtMethod){
        CtMethod method = (CtMethod)parameter.getParent();
        Operation operation = methodOperationMap.get(method);
        if (operation != null){
          createWsdlParameterMapping(method,operation,parameter,typeNodeData.xsdType);
        }       
      }
View Full Code Here

TOP

Related Classes of spoon.reflect.declaration.CtMethod

Copyright © 2018 www.massapicom. 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.