Package org.codehaus.mojo.taglist.beans
Class FileReport
java.lang.Object
org.codehaus.mojo.taglist.beans.FileReport
- All Implemented Interfaces:
Comparable<FileReport>
Report for a file.
- Author:
- Fabrice Bellingard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String comment, int lineIndex) Adds a new entry to the list of tags found for this file report.int
boolean
Returns the complete name of the analyzed class, for instance: org.codehaus.mojo.taglist.beans.FileReport.Returns the path corresponding to the analyzed class, for instance: org/apache/maven/plugins/taglist/beans/FileReport.getComment
(Integer lineIndex) Returns the comment for the corresponding line index.Returns the list of the comment line indexes.int
hashCode()
-
Constructor Details
-
FileReport
Constructor.- Parameters:
file
- The file to analyze.encoding
- the file encoding to use for the report.
-
-
Method Details
-
addComment
Adds a new entry to the list of tags found for this file report.- Parameters:
comment
- the comment string containing the 'todo'.lineIndex
- the line number of the comment (or first line if multi-lined).
-
getClassNameWithSlash
Returns the path corresponding to the analyzed class, for instance: org/apache/maven/plugins/taglist/beans/FileReport.- Returns:
- the file path.
-
getClassName
Returns the complete name of the analyzed class, for instance: org.codehaus.mojo.taglist.beans.FileReport.- Returns:
- the full class name.
-
getLineIndexes
Returns the list of the comment line indexes.- Returns:
- Collection of Integer.
-
getComment
Returns the comment for the corresponding line index.- Parameters:
lineIndex
- the index of the line.- Returns:
- the comment.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FileReport>
- See Also:
-
equals
-
hashCode
public int hashCode()
-