Package spoon.support.util.internal
Class ModelCollectionUtils
java.lang.Object
spoon.support.util.internal.ModelCollectionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
linkToParent(CtElement owner, CtElement element)
Changes the parent of a CtElement to the passed owner iff the element does not already have a different parent.
-
Method Details
-
linkToParent
Changes the parent of a CtElement to the passed owner iff the element does not already have a different parent.- Parameters:
owner
- the owner of the elementelement
- the element to set the parent for
-