java.lang.Object
com.CodeSmell.parser.CodePropertyGraph
- All Implemented Interfaces:
Serializable
The CodePropertyGraph which contains all the classes and relations
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A relationship that exists between two classes, with a type and associated multiplicity (if any) -
Field Summary
Modifier and TypeFieldDescriptionAll the classes within the CodePropertyGraphAll the packages within the CodePropertyGraph.private ArrayList<CodePropertyGraph.Relation>
All the relationships between classes within the CodePropertyGraph -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add aCPGClass
to the CodePropertyGraphprotected void
addPackage
(Package pkg) protected void
Add aCodePropertyGraph.Relation
to the CodePropertyGraphtoString()
-
Field Details
-
packages
All the packages within the CodePropertyGraph. Each package contains files which contain 1 or more classes each. -
classes
All the classes within the CodePropertyGraph -
relations
All the relationships between classes within the CodePropertyGraph
-
-
Constructor Details
-
CodePropertyGraph
protected CodePropertyGraph()
-
-
Method Details
-
toString
-
getPackages
-
getClasses
-
getRelations
-
addPackage
-
addClass
Add aCPGClass
to the CodePropertyGraph- Parameters:
c
- - The class to be added
-
addRelation
Add aCodePropertyGraph.Relation
to the CodePropertyGraph- Parameters:
r
- - The relation to be added
-