Package spoon.support.sniper.internal
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 ofElementSourceFragment
s which belong to collection role. For example list of Type members or list of parameters, etc. Or set of modifiers and annotations
-
-
Constructor Summary
Constructors Constructor Description CollectionSourceFragment(List<SourceFragment> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SourceFragment>
getItems()
String
getSourceCode()
String
toString()
-
-
-
Constructor Detail
-
CollectionSourceFragment
public CollectionSourceFragment(List<SourceFragment> items)
-
-
Method Detail
-
getSourceCode
public String getSourceCode()
- Specified by:
getSourceCode
in interfaceSourceFragment
- Returns:
- origin source code of whole fragment represented by this instance
-
getItems
public List<SourceFragment> getItems()
- Returns:
- child source fragments of this collection
-
-