public class PatchHunkLine
extends java.lang.Object
PatchHunk.| Modifier and Type | Field and Description | 
|---|---|
static int | 
INDICATOR_ADDED  | 
static int | 
INDICATOR_COMMON  | 
static int | 
INDICATOR_REMOVED  | 
| Constructor and Description | 
|---|
PatchHunkLine(int indicator)
Constructs a new  
PatchHunkLine with the given line indicator. | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getIndicator()
Gets the indicator for the patch hunk line (one of common, added, removed). 
 | 
java.lang.String | 
getLineData()
Gets the line data for the patch hunk line. 
 | 
boolean | 
isNoNewlineAtEOF()
Gets the flag for 'No newline at end of file'. 
 | 
void | 
setLineData(java.lang.String lineData)
Sets the line data for the patch hunk line. 
 | 
void | 
setNoNewlineAtEOF(boolean noNewlineAtEof)
Sets the flag for 'No newline at end of file'. 
 | 
public static final int INDICATOR_COMMON
public static final int INDICATOR_ADDED
public static final int INDICATOR_REMOVED
public PatchHunkLine(int indicator)
PatchHunkLine with the given line indicator.indicator - the line indicator.public int getIndicator()
public void setLineData(java.lang.String lineData)
lineData - the line data.public java.lang.String getLineData()
public void setNoNewlineAtEOF(boolean noNewlineAtEof)
noNewlineAtEof - true if EOF with no NL follows the line.public boolean isNoNewlineAtEOF()
true if EOF with no NL follows the line.