Interface ICodeBlock
-
- All Known Implementing Classes:
EntityCodeBlock
public interface ICodeBlock
Interface for storing a single block of code flagged by a detector as suspected plagiarism.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getBlockScore()
ISourceFile
getFile()
java.util.List<ITuple<java.lang.Integer,java.lang.Integer>>
getLineNumbers()
-
-
-
Method Detail
-
getBlockScore
float getBlockScore()
- Returns:
- the score (0 to 1) of this block within the group
Example: 1 - all of this block matches the group
-
getFile
ISourceFile getFile()
- Returns:
- the file containing the block
-
getLineNumbers
java.util.List<ITuple<java.lang.Integer,java.lang.Integer>> getLineNumbers()
- Returns:
- a list of tuples of line numbers that define the start and end of the code block. In most cases the list should be a single item, but if the same block is copied in multiple places in a file, all instances of the block will be output here.
-
-