Uses of Interface
spoon.support.sniper.internal.SourceFragment
Package
Description
This package defines compilation units that hold the source code and some classes around them (in most cases, these features should be ignored by the programmers).
-
Uses of SourceFragment in spoon.reflect.cu
Modifier and TypeMethodDescriptionSourcePositionHolder.getOriginalSourceFragment()
Returns the original source code (maybe different from toString() if a transformation has been applied). -
Uses of SourceFragment in spoon.support.sniper.internal
Modifier and TypeClassDescriptionclass
SourceFragment
of List or Set ofElementSourceFragment
s which belong to collection role.class
Represents a part of source code of anCtElement
It is connected into a tree ofElementSourceFragment
s.class
aSourceFragment
of some primitive String token, like separator, operator, whitespace, ...Modifier and TypeFieldDescriptionprotected List<SourceFragment>
AbstractSourceFragmentPrinter.childFragments
protected List<SourceFragment>
AbstractSourceFragmentPrinter.childFragments
Modifier and TypeMethodDescriptionElementSourceFragment.getChildrenFragments()
Note: the List of children is flat.ElementSourceFragment.getGroupedChildrenFragments()
Detects all child fragments of thisElementSourceFragment
.CollectionSourceFragment.getItems()
Modifier and TypeMethodDescriptionvoid
PrinterEvent.printSourceFragment(SourceFragment fragment, ModificationStatus isModified)
We have a source fragment of to be printed element.ModifierConstructorDescriptionCollectionSourceFragment(List<SourceFragment> items)
SourceFragmentContextList(MutableTokenWriter mutableTokenWriter, CtElement element, List<SourceFragment> fragments, ChangeResolver changeResolver)