public abstract class Diff extends Object implements IDiff
IDiff
that can be subclassed by
clients.ITwoWayDiff
,
IThreeWayDiff
Modifier and Type | Field and Description |
---|---|
static int |
KIND_MASK
Constant (bit mask) that defines the area of the status that is reserved
for use by this abstract class for encoding the kind of the diff.
|
Modifier | Constructor and Description |
---|---|
protected |
Diff(IPath path,
int status)
Create a diff node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getKind()
Returns the kind of this diff.
|
IPath |
getPath()
Returns the full, absolute path of the object to which the diff applies
with respect to the model root.
|
int |
getStatus()
Return the status of the diff node.
|
int |
hashCode() |
String |
toDiffString()
Return a string that describes the difference represented by
this node.
|
public static final int KIND_MASK
getStatus()
,
Constant Field Valuesprotected Diff(IPath path, int status)
path
- the path of the diffstatus
- the status of the diff. The kind should be encoded in the
status along with any additional flags required by a subclass.public IPath getPath()
IDiff
Note: the returned path never has a trailing separator.
public int getKind()
IDiff
ADDED
, REMOVED
, CHANGED
.getKind
in interface IDiff
IDiff.ADD
,
IDiff.REMOVE
,
IDiff.CHANGE
public final int getStatus()
KIND_MASK
.public String toDiffString()
IDiff
toDiffString
in interface IDiff
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.