Class CtUnresolvedImport

All Implemented Interfaces:
Serializable, Cloneable, FactoryAccessor, SourcePositionHolder, CtElement, CtImport, CtQueryable, CtVisitable

public class CtUnresolvedImport extends CtElementImpl implements CtImport
See Also:
  • Constructor Details

    • CtUnresolvedImport

      public CtUnresolvedImport()
  • Method Details

    • setStatic

      public void setStatic(boolean isStatic)
    • isStatic

      public boolean isStatic()
    • setUnresolvedReference

      public void setUnresolvedReference(String reference)
    • getUnresolvedReference

      public String getUnresolvedReference()
    • getImportKind

      public CtImportKind getImportKind()
      Description copied from interface: CtImport
      Returns the kind of import (see CtImportKind)
      Specified by:
      getImportKind in interface CtImport
    • getReference

      public CtReference getReference()
      Description copied from interface: CtImport
      Returns the reference of the import.
      Specified by:
      getReference in interface CtImport
    • setReference

      public <T extends CtImport> T setReference(CtReference reference)
      Description copied from interface: CtImport
      Sets the reference of the import. The import kind will be computed based on this reference.
      Specified by:
      setReference in interface CtImport
    • accept

      public void accept(CtImportVisitor visitor)
      Description copied from interface: CtImport
      Accepts a CtImportVisitor
      Specified by:
      accept in interface CtImport
    • accept

      public void accept(CtVisitor visitor)
      Description copied from interface: CtVisitable
      Accepts a visitor
      Specified by:
      accept in interface CtVisitable
    • clone

      public CtUnresolvedImport clone()
      Description copied from interface: CtElement
      Clone the element which calls this method in a new object. Note that that references are kept as is, and thus, so if you clone whole classes or methods, some parts of the cloned element (eg executable references) may still point to the initial element. In this case, consider using methods Refactoring.copyType(CtType) and Refactoring.copyMethod(CtMethod) instead which does additional work beyond cloning.
      Specified by:
      clone in interface CtElement
      Specified by:
      clone in interface CtImport
      Overrides:
      clone in class CtElementImpl
      Returns:
      a clone of this element. All children are cloned, but the parent of the returned clone is set to null.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class CtElementImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class CtElementImpl