Class Fragment
- java.lang.Object
-
- edu.hm.hafner.analysis.parser.dry.dupfinder.Fragment
-
public class Fragment extends Object
Java Bean class for a Reshaper DupFinder fragment.- Author:
- Rafal Jasica
-
-
Constructor Summary
Constructors Constructor Description Fragment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileName()Returns the file name.RangegetLineRange()Returns the line range.RangegetOffsetRange()Returns the offset range.StringgetText()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.voidsetText(String text)Sets the text to the specified value.
-
-
-
Method Detail
-
getFileName
@CheckForNull public String getFileName()
Returns the file name.- Returns:
- the path of this file
-
setFileName
public void setFileName(@CheckForNull String fileName)Sets the file name to the specified value.- Parameters:
fileName- the value to set
-
getText
@CheckForNull public String getText()
Returns the text.- Returns:
- the text
-
setText
public void setText(@CheckForNull String text)Sets the text to the specified value.- Parameters:
text- the value to set
-
getLineRange
public Range getLineRange()
Returns the line range.- Returns:
- the line range
-
setLineRange
public void setLineRange(@CheckForNull Range lineRange)Sets the line range to the specified value.- Parameters:
lineRange- the value to set
-
getOffsetRange
@CheckForNull public Range getOffsetRange()
Returns the offset range.- Returns:
- the offset range
-
setOffsetRange
public void setOffsetRange(@CheckForNull Range offsetRange)Sets the offset range to the specified value.- Parameters:
offsetRange- the value to set
-
-