Class ModelCollectionUtils

java.lang.Object
spoon.support.util.internal.ModelCollectionUtils

public final class ModelCollectionUtils extends Object
  • Method Details

    • linkToParent

      public static 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.
      Parameters:
      owner - the owner of the element
      element - the element to set the parent for