Class CodeDuplication::SimilarBlock

A block of similar code.

Direct supertypes

Indirect supertypes

Predicates

toString

Gets a textual representation of this element.

Inherited predicates

extendingBlock

Gets a block that extends this one, that is, its first token is also covered by this block, but they are not the same block.

from Copy
getEquivalenceClass

Gets an opaque identifier for the equivalence class of this block.

from Copy
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.

from Copy
sourceEndColumn

Gets the column on which the last token in this block ends.

from Copy
sourceEndLine

Gets the line on which the last token in this block ends.

from Copy
sourceFile

Gets the source file in which this block appears.

from Copy
sourceLines

Gets the number of lines containing at least (part of) one token in this block.

from Copy
sourceStartColumn

Gets the column on which the first token in this block starts.

from Copy
sourceStartLine

Gets the line on which the first token in this block starts.

from Copy
tokenEndingAt

Gets the index of the token in this block ending at the location loc, if any.

from Copy
tokenStartingAt

Gets the index of the token in this block starting at the location loc, if any.

from Copy