Class CollectionSourceFragment

java.lang.Object
spoon.support.sniper.internal.CollectionSourceFragment
All Implemented Interfaces:
SourceFragment

public class CollectionSourceFragment extends Object implements SourceFragment
SourceFragment of List or Set of ElementSourceFragments which belong to collection role. For example list of Type members or list of parameters, etc. Or set of modifiers and annotations
  • Constructor Details

    • CollectionSourceFragment

      public CollectionSourceFragment(List<SourceFragment> items)
  • Method Details

    • getSourceCode

      public String getSourceCode()
      Specified by:
      getSourceCode in interface SourceFragment
      Returns:
      origin source code of whole fragment represented by this instance
    • getItems

      public List<SourceFragment> getItems()
      Returns:
      child source fragments of this collection
    • toString

      public String toString()
      Overrides:
      toString in class Object