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 voidfinishProcessing(Vertex[] graph) Finishes processing.getGraph()Returns the package graph after processing.protected voidinitializeProcessing(Vertex[] graph) Initializes processing.protected voidprocessAfter(Vertex vertex) Processes the specified vertex after its arcs have been processed.protected voidprocessArc(Vertex tail, Vertex head) Processes the arc specified by tail and head vertices.protected voidprocessBefore(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:GraphProcessorInitializes processing. Will be called in methodGraphProcessor.deepSearchFirst(classycle.graph.Vertex[]).- Specified by:
initializeProcessingin classGraphProcessor
-
processBefore
Description copied from class:GraphProcessorProcesses the specified vertex before its outgoing arcs are processed.- Specified by:
processBeforein classGraphProcessor- Parameters:
vertex- Vertex to be processed.
-
processArc
Description copied from class:GraphProcessorProcesses the arc specified by tail and head vertices.- Specified by:
processArcin classGraphProcessor- Parameters:
tail- Tail vertex of the arc.head- Head vertex of the arc.
-
processAfter
Description copied from class:GraphProcessorProcesses the specified vertex after its arcs have been processed.- Specified by:
processAfterin classGraphProcessor- Parameters:
vertex- Vertex to be processed.
-
finishProcessing
Description copied from class:GraphProcessorFinishes processing. Will be called in methodGraphProcessor.deepSearchFirst(classycle.graph.Vertex[]).- Specified by:
finishProcessingin classGraphProcessor
-