public class Change extends Difference
Modifier and Type | Class and Description |
---|---|
class |
Change.AttributeAdd |
class |
Change.AttributeChange |
class |
Change.AttributeDelete |
class |
Change.AttributeDiff |
static class |
Change.Type |
Constructor and Description |
---|
Change(NodeInfo.NodeType nodeType,
List<Node> ancestors1,
List<Node> ancestors2,
Node n1,
Node n2,
int n1Pos,
int n2Pos,
List<Change.Type> changes)
Creates a new instance of DiffEvent
|
Modifier and Type | Method and Description |
---|---|
void |
addAttrChanges(Change.AttributeDiff attrDif) |
List<Change.AttributeDiff> |
getAttrChanges() |
List<Node> |
getNewAncestors() |
Node |
getNewParent() |
boolean |
isAttributeChanged() |
boolean |
isPositionChanged() |
boolean |
isTokenChanged() |
boolean |
isValid() |
void |
removeAttrChanges(Change.AttributeDiff attrDif) |
void |
setNewParent(Node parent2) |
String |
toString() |
getNewNodeInfo, getNodeType, getOldNodeInfo
public Change(NodeInfo.NodeType nodeType, List<Node> ancestors1, List<Node> ancestors2, Node n1, Node n2, int n1Pos, int n2Pos, List<Change.Type> changes)
public List<Change.AttributeDiff> getAttrChanges()
public void addAttrChanges(Change.AttributeDiff attrDif)
public void removeAttrChanges(Change.AttributeDiff attrDif)
public boolean isTokenChanged()
public boolean isAttributeChanged()
public boolean isPositionChanged()
public void setNewParent(Node parent2)
setNewParent
in class Difference
public Node getNewParent()
getNewParent
in class Difference
public List<Node> getNewAncestors()
getNewAncestors
in class Difference
public boolean isValid()