-
Notifications
You must be signed in to change notification settings - Fork 11
Visualisation of refactorings
FIX
Class UMLModifier
was introduced that provides LocationInfo
All AddXXXXModifier refactorings have a method UMLModifier getAddedModifier()
All RemoveXXXXModifier refactorings have a method UMLModifier getRemovedModifier()
All ChangeXXXXAccessModifier refactorings have two methods UMLModifier getOldModifier()
and UMLModifier getNewModifier()
Note These methods will return null
if the modifier is package-private
, because for package-private
access no keyword is used.
FIX
Instead of highlighting VariableDeclaration getOriginalVariable()
and VariableDeclaration getChangedTypeVariable()
getOriginalVariable().getType()
and getChangedTypeVariable().getType()
should be highlighted.
getType()
returns UMLType
object which has a LocationInfo
You case use List<LeafMapping> getSubExpressionMappings()
LeafMapping.getFragment1()
will give you the expression that was extracted from the left.
LeafMapping.getFragment2()
will give you the initializer of the extracted variable to the right.
If the List.size()
> 1, then it is a case of multi-mapping, where more than one expression from the left were extracted to the same variable initializer to the right.
Nothing is highlighted.