Class SourceFragmentCreator

java.lang.Object
spoon.support.modelobs.ChangeCollector
spoon.support.modelobs.SourceFragmentCreator

public class SourceFragmentCreator extends ChangeCollector
A ChangeCollector, which builds a tree of ElementSourceFragments of CompilationUnit of the modified element lazily just before the element is changed
  • Constructor Details

    • SourceFragmentCreator

      public SourceFragmentCreator()
  • Method Details

    • onChange

      protected void onChange(CtElement currentElement, CtRole role)
      Description copied from class: ChangeCollector
      Called whenever anything changes in the spoon model
      Overrides:
      onChange in class ChangeCollector
      Parameters:
      currentElement - the modified element
      role - the modified attribute of that element