Package net.sourceforge.pmd.lang.dfa
Class Structure
- java.lang.Object
-
- net.sourceforge.pmd.lang.dfa.Structure
-
@Deprecated public class Structure extends Object
Deprecated.SeeDataFlowNode
Structure contains only raw data. A set of nodes which represent a data flow and 2 stacks to link the nodes to each other.- Author:
- raik
-
-
Constructor Summary
Constructors Constructor Description Structure(DataFlowHandler dataFlowHandler)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DataFlowNode
createEndNode(int line)
Deprecated.DataFlowNode
createNewNode(Node node)
Deprecated.This class encapsulates the access to the DataFlowNode class.DataFlowNode
createStartNode(int line)
Deprecated.String
dump()
Deprecated.List<StackObject>
getBraceStack()
Deprecated.List<StackObject>
getContinueBreakReturnStack()
Deprecated.DataFlowNode
getFirst()
Deprecated.DataFlowNode
getLast()
Deprecated.void
pushOnStack(NodeType type, DataFlowNode node)
Deprecated.The braceStack contains all nodes which are important to link the data flow nodes.protected void
tryToLog(String tag, DataFlowNode node)
Deprecated.
-
-
-
Constructor Detail
-
Structure
public Structure(DataFlowHandler dataFlowHandler)
Deprecated.
-
-
Method Detail
-
createNewNode
public DataFlowNode createNewNode(Node node)
Deprecated.This class encapsulates the access to the DataFlowNode class. Is this worthwhile? TODO I think it's too confusing to have the DataFlowNode constructor add the created instance to the List. I think it'd be clearer if we did that more "procedurally", i.e., create the object, then add it to the list.
-
createStartNode
public DataFlowNode createStartNode(int line)
Deprecated.
-
createEndNode
public DataFlowNode createEndNode(int line)
Deprecated.
-
getLast
public DataFlowNode getLast()
Deprecated.
-
getFirst
public DataFlowNode getFirst()
Deprecated.
-
pushOnStack
public void pushOnStack(NodeType type, DataFlowNode node)
Deprecated.The braceStack contains all nodes which are important to link the data flow nodes. The cbrStack contains continue, break, and return nodes. There are 2 Stacks because the have to process differently.
-
tryToLog
protected void tryToLog(String tag, DataFlowNode node)
Deprecated.
-
getBraceStack
public List<StackObject> getBraceStack()
Deprecated.
-
getContinueBreakReturnStack
public List<StackObject> getContinueBreakReturnStack()
Deprecated.
-
dump
public String dump()
Deprecated.- Returns:
- formatted dump of the DFA Structure's
-
-