-
-
-
Serialized Fields
-
classes
ArrayList<CPGClass> classes
All the classes within the CodePropertyGraph
-
packages
ArrayList<Package> packages
All the packages within the CodePropertyGraph. Each package contains files which contain 1 or more classes each.
-
relations
ArrayList<CodePropertyGraph.Relation> relations
All the relationships between classes within the CodePropertyGraph
-
-
Serialized Fields
-
destination
CPGClass destination
The destination class of the relationship
-
multiplicity
String multiplicity
The multiplicity associated with the relation (empty for relations other than some form of ASSOCIATION relation)
-
source
CPGClass source
The source class of the relationship
-
type
ClassRelation.RelationshipType type
-
-
Serialized Fields
-
attributes
List<CPGClass.Attribute> attributes
-
classFullName
String classFullName
The full name of the class (either the same as name or
if the class is a nested class, will be "CPGClass.Attribute" for example)
-
classType
CPGClass.ClassType classType
The type of the class ("abstract class", "class", "enum", "interface")
-
code
String code
The class declaration (i.e. "public abstract class Smell")
-
emptyLines
int emptyLines
The total number of empty lines within a class
-
fileLength
int fileLength
The total length of the file where the class exists
-
filePath
String filePath
The full filepath pointing to where the class is stored
-
importStatements
String[] importStatements
The import statements imported from the file where the class is defined
-
inheritsFrom
List<CPGClass> inheritsFrom
The list of classes that the class inherits from in some way (can include interfaces as well)
-
lineNumber
int lineNumber
The line number in which the class is declared
-
methods
List<CPGClass.Method> methods
-
modifiers
List<CPGClass.Modifier> modifiers
-
name
String name
The name of the class
-
nonEmptyLines
int nonEmptyLines
The total number of non-empty lines within a class (includes comments)
-
outwardRelations
List<CodePropertyGraph.Relation> outwardRelations
-
packageName
String packageName
The package that the class belongs to, if any
-
smells
ArrayList<Smell> smells
-
timesCalled
int timesCalled
-
timesCalling
int timesCalling
-
-
Serialized Fields
-
attributeType
String attributeType
The full type of the attribute
-
code
String code
The full line of code in which the attribute is declared
-
lineNumber
int lineNumber
The line number in which the attribute was declared
-
modifiers
List<CPGClass.Modifier> modifiers
-
name
String name
The name of the attribute
-
packageName
String packageName
The name of the package in which the type of the Attribute originates from
(i.e. "java.util.List")
-
parentClass
CPGClass[] parentClass
The parent class which owns this attribute
-
typeList
List<CPGClass> typeList
All the types that can be extracted from the attributeType
(i.e. "HashMap < CPGClass, List< CPGClass.Method > >" will give ["CPGClass", "CPGClass.Method"]
-
-
Serialized Fields
-
attributeCalls
List<CPGClass.Attribute> attributeCalls
All the attributes that this method uses, if any
-
instructions
List<CPGClass.Method.Instruction> instructions
-
lineNumberEnd
int lineNumberEnd
The line number where the method ends
-
lineNumberStart
int lineNumberStart
The line number where the method starts
-
methodBody
String methodBody
The method body containing the name of the method along with all of its parameters, if any
(i.e. "CPGClass(String name, String filePath, String type)" )
-
methodCalls
List<CPGClass.Method> methodCalls
All the methods that this method calls, if any
-
modifiers
List<CPGClass.Modifier> modifiers
-
name
String name
The name of the method
-
parameters
List<CPGClass.Method.Parameter> parameters
-
parentClass
CPGClass[] parentClass
The class which owns the method
-
parentClassName
String parentClassName
-
returnType
String returnType
The return type of the method, if any
-
totalMethodLength
int totalMethodLength
The total length of the method (lineNumberEnd - lineNumberStart)
-
-
Serialized Fields
-
code
String code
The line of code
-
label
String label
The label associated with each line of code (i.e. METHOD_RETURN, CALL, FIELD_IDENTIFIER, LOCAL, etc)
-
lineNumber
int lineNumber
The line number of where the line of code occurs within the method body
-
methodCall
String methodCall
The name of the method that the instruction is calling, if any
-
-
Serialized Fields
-
code
String code
The full line of code belonging to a method parameter
-
name
String name
The name of the method parameter
-
type
String type
The full type of the method parameter
-
typeList
List<CPGClass> typeList
All the types that can be extracted from the parameter type
(i.e. "HashMap < CPGClass, List< CPGClass.Method > >" will give ["CPGClass", "CPGClass.Method"]
-
-
Serialized Fields
-
files
ArrayList<Package.File> files
All the files contained within the package
-
packageName
String packageName
The name of the package
-
subPackages
ArrayList<Package> subPackages
All the subpackages that exist within the package, if any
-
-
Serialized Fields
-
classes
ArrayList<CPGClass> classes
All the classes that reside within the file
-
fileName
String fileName
The name of the file (e.g. CPGClass.java)
-
filePath
String filePath
The full filePath of the file