Class CodeDuplication::Copy

A token block used for detection of duplicate and similar code.

Direct supertypes

Known direct subtypes

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.

getEquivalenceClass

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

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.

sourceEndColumn

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

sourceEndLine

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

sourceFile

Gets the source file in which this block appears.

sourceLines

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

sourceStartColumn

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

sourceStartLine

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

toString

Gets a textual representation of this element.

tokenEndingAt

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

tokenStartingAt

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