Class 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
      onChange in class ChangeCollector
      currentElement - the modified element
      role - the modified attribute of that element