Class JavaElementBase<E extends Element,​T extends TypeMirror>

    • Field Detail

      • element

        protected final E extends Element element
      • representation

        protected final T extends TypeMirror representation
    • Method Detail

      • getHumanReadableElementType

        protected abstract String getHumanReadableElementType()
      • getParent

        public getParent()
        Specified by:
        getParent in interface org.revapi.Element<E extends Element>
        Specified by:
        getParent in interface
        getParent in class org.revapi.base.BaseElement<>
      • setParent

        public void setParent​(@Nullable
        Specified by:
        setParent in interface org.revapi.Element<E extends Element>
        setParent in class org.revapi.base.BaseElement<>
      • getApi

        public org.revapi.API getApi()
        Specified by:
        getApi in interface org.revapi.Element<E extends Element>
        getApi in class org.revapi.base.BaseElement<>
      • getDeclaringElement

        public E getDeclaringElement()
        Specified by:
        getDeclaringElement in interface
      • getModelRepresentation

        public T getModelRepresentation()
        Specified by:
        getModelRepresentation in interface
      • isInherited

        public boolean isInherited()
        Specified by:
        isInherited in interface
      • setInherited

        public void setInherited​(boolean inherited)
      • getFullHumanReadableString

        public final String getFullHumanReadableString()
        Specified by:
        getFullHumanReadableString in interface org.revapi.Element<E extends Element>
        getFullHumanReadableString in class org.revapi.base.BaseElement<>
      • createFullHumanReadableString

        protected String createFullHumanReadableString()
      • hashCode

        public int hashCode()
        hashCode in class Object
      • clone

        public JavaElementBase<E,​T> clone()
        clone in class org.revapi.base.BaseElement<>
      • cloneUnder

        public Optional<JavaElementBase<E,​T>> cloneUnder​(JavaElementBase<?,​?> newParent)
        Clones this element and tries to add it under the new parent. If the parent already contains an element equivalent to this one, the returned optional is empty, otherwise it contains the clone.
        newParent - the parent to add the clone to
        optional with the clone or an empty optional if the new parent already contains an equivalent element
      • getComparableSignature

        protected String getComparableSignature()
      • createComparableSignature

        protected abstract String createComparableSignature()