Interface CtShadowable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isShadow()
      When an element isn't present in the factory (created in another factory), this element is considered as "shadow".
      <E extends CtShadowable>
      E
      setShadow​(boolean isShadow)
      Marks an element as shadow.
    • Method Detail

      • isShadow

        boolean isShadow()
        When an element isn't present in the factory (created in another factory), this element is considered as "shadow". e.g., a shadow element can be a CtType of java.lang.Class built when we call CtTypeReference.getTypeDeclaration() on a reference of java.lang.Class.
        Returns:
        true if the element is a shadow element, otherwise false.
      • setShadow

        <E extends CtShadowable> E setShadow​(boolean isShadow)
        Marks an element as shadow. To know what is a shadow element, see the javadoc of isShadow().