Package spoon.support.sniper.internal
Class ChangeResolver
java.lang.Object
spoon.support.sniper.internal.ChangeResolver
Helper which provides details about changes on provided `element`
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChanges(SourcePositionHolder element)
boolean
boolean
isElementExists(SourcePositionHolder element)
boolean
isRoleModified(CtRole ctRole)
-
Constructor Details
-
ChangeResolver
-
-
Method Details
-
isElementExists
- Returns:
- true if `element` still exist in the printed model. false if it was removed or was never there
-
getChanges
- Parameters:
element
- to be checked element- Returns:
- Set of
CtRole
s, which are modified for `element`
-
isRoleModified
- Parameters:
ctRole
- to be checkedCtRole
- Returns:
- true if `ctRole` of scope `element` is modified
-
hasChangedRole
public boolean hasChangedRole()- Returns:
- true if scope `element` is changed
-
getChangeCollector
- Returns:
ChangeCollector
-