Package classycle
Class PackageProcessor
- java.lang.Object
-
- classycle.graph.GraphProcessor
-
- classycle.PackageProcessor
-
public class PackageProcessor extends GraphProcessor
Processor which extracts the package dependency graph from the class dependency graph.- Author:
- Franz-Josef Elmer
-
-
Constructor Summary
Constructors Constructor Description PackageProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinishProcessing(Vertex[] graph)Finishes processing.AtomicVertex[]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
-
-
-
-
Method Detail
-
getGraph
public AtomicVertex[] getGraph()
Returns the package graph after processing.- Returns:
- can be null before processing.
-
initializeProcessing
protected void initializeProcessing(Vertex[] graph)
Description copied from class:GraphProcessorInitializes processing. Will be called in methodGraphProcessor.deepSearchFirst(classycle.graph.Vertex[]).- Specified by:
initializeProcessingin classGraphProcessor
-
processBefore
protected void processBefore(Vertex vertex)
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
protected void processArc(Vertex tail, Vertex head)
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
protected void processAfter(Vertex vertex)
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
protected void finishProcessing(Vertex[] graph)
Description copied from class:GraphProcessorFinishes processing. Will be called in methodGraphProcessor.deepSearchFirst(classycle.graph.Vertex[]).- Specified by:
finishProcessingin classGraphProcessor
-
-