Uses of Interface
spoon.support.sniper.internal.SourceFragment
Packages that use 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
Methods in spoon.reflect.cu that return SourceFragmentModifier 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
Classes in spoon.support.sniper.internal that implement SourceFragmentModifier 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, ...Fields in spoon.support.sniper.internal with type parameters of type SourceFragmentModifier and TypeFieldDescriptionprotected List<SourceFragment>
AbstractSourceFragmentPrinter.childFragments
protected List<SourceFragment>
AbstractSourceFragmentPrinter.childFragments
Methods in spoon.support.sniper.internal that return types with arguments of type SourceFragmentModifier and TypeMethodDescriptionElementSourceFragment.getChildrenFragments()
Note: the List of children is flat.ElementSourceFragment.getGroupedChildrenFragments()
Detects all child fragments of thisElementSourceFragment
.CollectionSourceFragment.getItems()
Methods in spoon.support.sniper.internal with parameters of type SourceFragmentModifier and TypeMethodDescriptionvoid
PrinterEvent.printSourceFragment(SourceFragment fragment, ModificationStatus isModified)
We have a source fragment of to be printed element.Constructor parameters in spoon.support.sniper.internal with type arguments of type SourceFragmentModifierConstructorDescriptionCollectionSourceFragment(List<SourceFragment> items)
SourceFragmentContextList(MutableTokenWriter mutableTokenWriter, CtElement element, List<SourceFragment> fragments, ChangeResolver changeResolver)