Module edu.hm.hafner.analysis.model
Class Fragment
java.lang.Object
edu.hm.hafner.analysis.parser.dry.dupfinder.Fragment
Java Bean class for a Reshaper DupFinder fragment.
- Author:
- Rafal Jasica
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the file name.Returns the line range.Returns the offset range.getText()Returns the text.voidsetFileName(String fileName) Sets the file name to the specified value.voidsetLineRange(Range lineRange) Sets the line range to the specified value.voidsetOffsetRange(Range offsetRange) Sets the offset range to the specified value.voidSets the text to the specified value.
-
Constructor Details
-
Fragment
public Fragment()
-
-
Method Details
-
getFileName
Returns the file name.- Returns:
- the path of this file
-
setFileName
Sets the file name to the specified value.- Parameters:
fileName- the value to set
-
getText
Returns the text.- Returns:
- the text
-
setText
Sets the text to the specified value.- Parameters:
text- the value to set
-
getLineRange
Returns the line range.- Returns:
- the line range
-
setLineRange
Sets the line range to the specified value.- Parameters:
lineRange- the value to set
-
getOffsetRange
Returns the offset range.- Returns:
- the offset range
-
setOffsetRange
Sets the offset range to the specified value.- Parameters:
offsetRange- the value to set
-