forked from phoedos/pmd
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:
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
19
pmd/src/net/sourceforge/pmd/dfa/pathfinder/PathElement.java
Normal file
19
pmd/src/net/sourceforge/pmd/dfa/pathfinder/PathElement.java
Normal 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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user