Package classycle
Class PackageProcessor
java.lang.Object
classycle.graph.GraphProcessor
classycle.PackageProcessor
Processor which extracts the package dependency graph from the class
dependency graph.
- Author:
- Franz-Josef Elmer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishProcessing
(Vertex[] graph) Finishes processing.getGraph()
Returns the package graph after processing.protected void
initializeProcessing
(Vertex[] graph) Initializes processing.protected void
processAfter
(Vertex vertex) Processes the specified vertex after its arcs have been processed.protected void
processArc
(Vertex tail, Vertex head) Processes the arc specified by tail and head vertices.protected void
processBefore
(Vertex vertex) Processes the specified vertex before its outgoing arcs are processed.Methods inherited from class classycle.graph.GraphProcessor
deepSearchFirst, process
-
Constructor Details
-
PackageProcessor
public PackageProcessor()
-
-
Method Details
-
getGraph
Returns the package graph after processing.- Returns:
- can be null before processing.
-
initializeProcessing
Description copied from class:GraphProcessor
Initializes processing. Will be called in methodGraphProcessor.deepSearchFirst(classycle.graph.Vertex[])
.- Specified by:
initializeProcessing
in classGraphProcessor
-
processBefore
Description copied from class:GraphProcessor
Processes the specified vertex before its outgoing arcs are processed.- Specified by:
processBefore
in classGraphProcessor
- Parameters:
vertex
- Vertex to be processed.
-
processArc
Description copied from class:GraphProcessor
Processes the arc specified by tail and head vertices.- Specified by:
processArc
in classGraphProcessor
- Parameters:
tail
- Tail vertex of the arc.head
- Head vertex of the arc.
-
processAfter
Description copied from class:GraphProcessor
Processes the specified vertex after its arcs have been processed.- Specified by:
processAfter
in classGraphProcessor
- Parameters:
vertex
- Vertex to be processed.
-
finishProcessing
Description copied from class:GraphProcessor
Finishes processing. Will be called in methodGraphProcessor.deepSearchFirst(classycle.graph.Vertex[])
.- Specified by:
finishProcessing
in classGraphProcessor
-