Package lib.reports
Class ClassReportImpl
java.lang.Object
lib.reports.ClassReportImpl
- All Implemented Interfaces:
ClassReport
,InterfaceReport
,Report
Class to manage report about class. Implements
ClassReport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFieldInfo
(FieldInfo fieldInfo) Add aFieldInfo
to the reportvoid
addMethodInfo
(MethodInfo methodInfo) Add aMethodInfo
to the reportGet a list of fields inside the classGet a list of methods inside the item (class/interface)getName()
Get the name of the item (class/interface)Get the path from source rootvoid
setFullPath
(String srcFullFileName) Set the path from source rootvoid
Set the name of the item (class/interface)toString()
-
Constructor Details
-
ClassReportImpl
public ClassReportImpl()Class constructor. Initialize all information as empty
-
-
Method Details
-
getName
Description copied from interface:Report
Get the name of the item (class/interface) -
getSourceFullPath
Description copied from interface:Report
Get the path from source root- Specified by:
getSourceFullPath
in interfaceReport
- Returns:
- the path from source root
-
getMethodsInfo
Description copied from interface:InterfaceReport
Get a list of methods inside the item (class/interface)- Specified by:
getMethodsInfo
in interfaceInterfaceReport
- Returns:
- a
List
ofMethodInfo
-
getFieldsInfo
Description copied from interface:ClassReport
Get a list of fields inside the class- Specified by:
getFieldsInfo
in interfaceClassReport
- Returns:
- a
List
ofFieldInfo
-
setName
Description copied from interface:Report
Set the name of the item (class/interface) -
setFullPath
Description copied from interface:Report
Set the path from source root- Specified by:
setFullPath
in interfaceReport
- Parameters:
srcFullFileName
- the path from source root
-
addMethodInfo
Description copied from interface:InterfaceReport
Add aMethodInfo
to the report- Specified by:
addMethodInfo
in interfaceInterfaceReport
- Parameters:
methodInfo
- theMethodInfo
-
addFieldInfo
Description copied from interface:ClassReport
Add aFieldInfo
to the report- Specified by:
addFieldInfo
in interfaceClassReport
- Parameters:
fieldInfo
- theFieldInfo
-
toString
-