Package com.technophobia.substeps.execution.node

Examples of com.technophobia.substeps.execution.node.ExecutionNodeUsage


        boolean found = false;
       
        final Iterator<ExecutionNodeUsage> it = calledExecutionNodes.iterator();
       
        while (it.hasNext() && !found){
            final ExecutionNodeUsage u = it.next();
           
            if (stepPattern == null || u.getDescription() == null){
               
                System.out.println("barrf");
            }
           
            found = Pattern.matches(stepPattern, u.getDescription());
        }
        // NB. return true if no match found!
        return !found;
    }
View Full Code Here


    /**
     * @param rootNode2
     */
    private void buildCallHierarchy() {
               
        final ExecutionNodeUsage rootUsage = new ExecutionNodeUsage(this.rootNode);
       
        callerHierarchy.put(rootUsage, null); // nothing calls this
       
        for (final FeatureNode feature : this.rootNode.getChildren()){
           
View Full Code Here

    /**
     * @param node
     */
    private void addToCallHierarchy(final IExecutionNode node) {

        final ExecutionNodeUsage usage = new ExecutionNodeUsage(node);
       
        log.trace("building usage for desc: " + node.getDescription() + " line: " + node.getLine());
       
        List<ExecutionNodeUsage> immediateParents = callerHierarchy.get(usage);
        if (immediateParents == null){
            log.trace("no uses already for node...");
            immediateParents = new ArrayList<ExecutionNodeUsage>();
            callerHierarchy.put(usage, immediateParents);
        }
        else {
            log.trace("got existing usages of node: ");
            for (final ExecutionNodeUsage u : immediateParents){
                log.trace("already found: " + u.toString());
            }
        }
        log.trace("adding used by descr: " + node.getParent().getDescription() + " line: " + node.getParent().getLine());
       
        immediateParents.add(new ExecutionNodeUsage(node.getParent()));

    }
View Full Code Here

TOP

Related Classes of com.technophobia.substeps.execution.node.ExecutionNodeUsage

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.