Package org.pdtextensions.core.ast.util

Examples of org.pdtextensions.core.ast.util.BlockContainsFinder$Match


      if(!(statement instanceof MethodDeclaration) ){
        continue;
      }

      // find all similar nodes
      BlockContainsFinder replacementFinder = new BlockContainsFinder(((MethodDeclaration) statement).getFunction().getBody(), toSearchNodes);
      replacementFinder.perform();
     
      // add the matches.
      fDuplicates.addAll(replacementFinder.getMatches());
    }
   
    // at least, the selected nodes have to get found...
    //Assert.isLegal(fDuplicates.size() > 0);
    // this does not work if the user doesnt select a statement (e.g. just a variable in a MethodInvocation)
View Full Code Here

TOP

Related Classes of org.pdtextensions.core.ast.util.BlockContainsFinder$Match

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.