Class ChangeResolver

java.lang.Object
spoon.support.sniper.internal.ChangeResolver

public class ChangeResolver extends Object
Helper which provides details about changes on provided `element`
  • Constructor Details

  • Method Details

    • isElementExists

      public boolean isElementExists(SourcePositionHolder element)
      Returns:
      true if `element` still exist in the printed model. false if it was removed or was never there
    • getChanges

      public Set<CtRole> getChanges(SourcePositionHolder element)
      Parameters:
      element - to be checked element
      Returns:
      Set of CtRoles, which are modified for `element`
    • isRoleModified

      public boolean isRoleModified(CtRole ctRole)
      Parameters:
      ctRole - to be checked CtRole
      Returns:
      true if `ctRole` of scope `element` is modified
    • hasChangedRole

      public boolean hasChangedRole()
      Returns:
      true if scope `element` is changed
    • getChangeCollector

      public ChangeCollector getChangeCollector()
      Returns:
      ChangeCollector