Class AbstractJavaElement

  • All Implemented Interfaces:
    Cloneable, Comparable<org.revapi.java.spi.JavaElement>, org.revapi.Element<org.revapi.java.spi.JavaElement>, org.revapi.java.spi.JavaElement
    Direct Known Subclasses:
    AnnotationElement, JavaElementBase

    public abstract class AbstractJavaElement
    extends org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
    implements org.revapi.java.spi.JavaElement
    A common superclass for AnnotationElement and JavaElementBase to stuff that they share.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.revapi.java.spi.TypeEnvironment getTypeEnvironment()  
      protected org.revapi.Reference<org.revapi.java.spi.JavaElement> newReference​(org.revapi.java.spi.JavaElement target, org.revapi.Reference.Type<org.revapi.java.spi.JavaElement> type)  
      void setArchive​(org.revapi.Archive archive)  
      • Methods inherited from class org.revapi.base.BaseElement

        castThis, clone, getApi, getArchive, getChildren, getFullHumanReadableString, getParent, getReferencedElements, getReferencingElements, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren, setParent
      • Methods inherited from interface org.revapi.Element

        as, getApi, getArchive, getChildren, getCumulativeReferencedElements, getCumulativeReferencingElements, getFullHumanReadableString, getParent, getReferencedElements, getReferencingElements, iterateOverChildren, searchChildren, searchChildren, setParent, stream
    • Constructor Detail

    • Method Detail

      • newReference

        protected org.revapi.Reference<org.revapi.java.spi.JavaElement> newReference​(org.revapi.java.spi.JavaElement target,
                                                                                     org.revapi.Reference.Type<org.revapi.java.spi.JavaElement> type)
        Overrides:
        newReference in class org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
      • getTypeEnvironment

        @Nonnull
        public org.revapi.java.spi.TypeEnvironment getTypeEnvironment()
        Specified by:
        getTypeEnvironment in interface org.revapi.java.spi.JavaElement
      • setArchive

        public void setArchive​(@Nullable
                               org.revapi.Archive archive)
        Overrides:
        setArchive in class org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>