Interface JavaTypeElement

    • Method Detail

      • getModelRepresentation

        DeclaredType getModelRepresentation()
        Description copied from interface: JavaModelElement
        Note that this is distinctly different from JavaModelElement.getDeclaringElement(). This method returns a type mirror describing an element on its position in the type hierarchy. I.e. if an inherited method with type parameters resolved according to the class it is inherited "to".
        Specified by:
        getModelRepresentation in interface JavaModelElement
        Returns:
        the representation of this java element at its position in the type hierarchy
      • getDeclaringElement

        TypeElement getDeclaringElement()
        Description copied from interface: JavaModelElement
        For an inherited method for example, this will return the element in the super type that declares this method.
        Specified by:
        getDeclaringElement in interface JavaModelElement
        Returns:
        The element that represents the declaration this model element.
      • isInAPI

        boolean isInAPI()
        Returns:
        true if this type was found to be a part of the API, false otherwise
      • isInApiThroughUse

        boolean isInApiThroughUse()
        Returns:
        true, if the class is not accessible in and of itself but is dragged into the API by a significant use.