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 TypeClassDescriptionclassSourceFragmentof List or Set ofElementSourceFragments which belong to collection role.classRepresents a part of source code of anCtElementIt is connected into a tree ofElementSourceFragments.classaSourceFragmentof 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.childFragmentsprotected List<SourceFragment>AbstractSourceFragmentPrinter.childFragmentsMethods 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 TypeMethodDescriptionvoidPrinterEvent.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)