public Void visitExecutable()

in src/main/java/com/amazonaws/eclipse/simpleworkflow/asynchrony/annotationprocessor/WorkflowTypeVisitor.java [59:89]


    public Void visitExecutable(ExecutableElement method, ProcessingEnvironment env) {
        
        if (method.getAnnotation(Execute.class) != null) {
            String workflowName = ProcessorUtils.computeWorkflowName(
                    workflowDefinition.getInterfaceName(), method);
            String workflowVersion = ProcessorUtils.computeWorkflowVersion(method);
            
            ExecuteMethod executeMethod = new ExecuteMethod(workflowName, workflowVersion);
            setMethodInfo(method, executeMethod, workflowDefinition.getPackageName());
            
            executeMethod.setAnnotationsToCopy(ProcessorUtils.getAnnotationsText(env, method, annotationsToExcludeFromCopying));
            
            workflowDefinition.setExecuteMethod(executeMethod);
        } 
        else if (method.getAnnotation(Signal.class) != null) {
            String signalName = ProcessorUtils.computeSignalName(method);
            
            SignalMethod signalMethod = new SignalMethod(signalName);
            setMethodInfo(method, signalMethod, workflowDefinition.getPackageName());
            
            workflowDefinition.getSignals().add(signalMethod);
        }
        else if (method.getAnnotation(GetState.class) != null) {
            GetStateMethod getStateMethod = new GetStateMethod();
            setMethodInfo(method, getStateMethod, workflowDefinition.getPackageName());
            
            workflowDefinition.setGetStateMethod(getStateMethod);
        }
        
        return super.visitExecutable(method, env);
    }