Uses of Class
spoon.support.sniper.internal.ElementSourceFragment
Packages that use ElementSourceFragment
Package
Description
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package provides an implementation of the spoon.reflect package.
-
Uses of ElementSourceFragment in spoon.reflect.declaration
Methods in spoon.reflect.declaration that return ElementSourceFragment -
Uses of ElementSourceFragment in spoon.support.reflect
Methods in spoon.support.reflect that return ElementSourceFragment -
Uses of ElementSourceFragment in spoon.support.reflect.declaration
Methods in spoon.support.reflect.declaration that return ElementSourceFragmentModifier and TypeMethodDescriptionCtCompilationUnitImpl.getOriginalSourceFragment()
CtElementImpl.getOriginalSourceFragment()
-
Uses of ElementSourceFragment in spoon.support.sniper.internal
Fields in spoon.support.sniper.internal declared as ElementSourceFragmentModifier and TypeFieldDescriptionstatic ElementSourceFragment
ElementSourceFragment.NO_SOURCE_FRAGMENT
represents anElementSourceFragment
, which doesn't existMethods in spoon.support.sniper.internal that return ElementSourceFragmentModifier and TypeMethodDescriptionElementSourceFragment.add(ElementSourceFragment other)
adds `other`ElementSourceFragment
into tree ofElementSourceFragment
s represented by this root elementstatic ElementSourceFragment
ElementSourceFragment.createSourceFragmentsFrom(CtElement element)
Builds a tree of source fragments for `element` and all its children, based on the source positions of each elementElementSourceFragment.getFirstChild()
ElementSourceFragment.getNextSibling()
ElementSourceFragment.getSourceFragmentOf(SourcePositionHolder element, int start, int end)
Searches the tree of fragments for theElementSourceFragment
with expected `element`, which contains `start` and `end` source interval.Methods in spoon.support.sniper.internal with parameters of type ElementSourceFragmentModifier and TypeMethodDescriptionElementSourceFragment.add(ElementSourceFragment other)
adds `other`ElementSourceFragment
into tree ofElementSourceFragment
s represented by this root elementConstructors in spoon.support.sniper.internal with parameters of type ElementSourceFragmentModifierConstructorDescriptionSourceFragmentContextNormal(MutableTokenWriter mutableTokenWriter, ElementSourceFragment rootFragment, ChangeResolver changeResolver)