Moving more code out of DAAPathFinder; now need to make those attributes private and migrate over some methods

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3863 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2005-09-24 00:30:33 +00:00
parent d5883cd331
commit edd1d893d4
2 changed files with 20 additions and 12 deletions

View File

@ -25,15 +25,6 @@ public class DAAPathFinder {
private CurrentPath currentPath = new CurrentPath();
private DefaultMutableTreeNode stack = new DefaultMutableTreeNode();
private static class PathElement{
int currentChild;
IDataFlowNode node;
IDataFlowNode pseudoRef;
PathElement(IDataFlowNode node) {
this.node = node;
}
}
public DAAPathFinder(IDataFlowNode rootNode, Executable shim) {
this.rootNode = rootNode;
this.shim = shim;
@ -219,9 +210,7 @@ public class DAAPathFinder {
* Needed for do loops
* */
private void addNewPseudoPathElement(DefaultMutableTreeNode level, IDataFlowNode ref) {
PathElement e = new PathElement(currentPath.getLast());
e.pseudoRef = ref;
this.addNode(level, e);
this.addNode(level, new PathElement(currentPath.getLast(), ref));
}
/*

View File

@ -0,0 +1,19 @@
package net.sourceforge.pmd.dfa.pathfinder;
import net.sourceforge.pmd.dfa.IDataFlowNode;
public class PathElement{
public int currentChild;
public IDataFlowNode node;
public IDataFlowNode pseudoRef;
PathElement(IDataFlowNode node) {
this.node = node;
}
PathElement(IDataFlowNode node, IDataFlowNode ref) {
this.node = node;
this.pseudoRef = ref;
}
}