Class JacksonElement<E extends JacksonElement<E>>

  • Type Parameters:
    E -
    All Implemented Interfaces:
    Cloneable, Comparable<E>, org.revapi.Element<E>

    public class JacksonElement<E extends JacksonElement<E>>
    extends org.revapi.base.BaseElement<E>
    A base class for elements based on Jackson.
    • Field Detail

      • filePath

        protected final String filePath
      • node

        protected final com.fasterxml.jackson.core.TreeNode node
      • keyInParent

        protected final String keyInParent
      • indexInParent

        protected final int indexInParent
    • Constructor Detail

      • JacksonElement

        public JacksonElement​(org.revapi.API api,
                              org.revapi.Archive archive,
                              String filePath,
                              com.fasterxml.jackson.core.TreeNode node,
                              String key)
      • JacksonElement

        public JacksonElement​(org.revapi.API api,
                              org.revapi.Archive archive,
                              String filePath,
                              com.fasterxml.jackson.core.TreeNode node,
                              int index)
    • Method Detail

      • getNode

        public com.fasterxml.jackson.core.TreeNode getNode()
      • getFilePath

        public String getFilePath()
      • getPath

        public String getPath()
      • getValueString

        public String getValueString()
      • setParent

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

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

        protected String createFullHumanReadableString()
      • compareTo

        public int compareTo​(E other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getPathPart

        protected String getPathPart()