Class CommentedOut::CommentedOutCode

A run of consecutive comments containing a high percentage of lines that look like commented-out code.

This is represented by the comment that starts the run, with a special hasLocationInfo implementation that assigns it the entire run as its location.

Direct supertypes

Indirect supertypes

Predicates

getNumCodeLines

Gets the number of lines in this run of comments that look like they contain commented-out code.

getNumNonBlankLines

Gets the number of non-blank lines in this run of comments.

hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see LGTM locations.

Inherited predicates

getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getLine

Gets the ith line of comment text.

from Comment
getLocation

Gets this element’s location.

from Comment
getNextToken

Gets the next token after this comment.

from Comment
getNumLines

Gets the number of lines covered by this element.

from Comment
getStartLine

Gets the line on which this element starts.

from Locatable
getText

Gets the text of this comment, not including delimiters.

from Comment
getTopLevel

Gets the toplevel element this comment belongs to.

from Comment
onLines

Holds if this comment spans lines start to end (inclusive) in file f.

from Comment
toString

Gets a textual representation of this element.

from Comment

Charpred