Package org.revapi.jackson
Class JacksonElement<E extends JacksonElement<E>>
- java.lang.Object
-
- org.revapi.base.BaseElement<E>
-
- org.revapi.jackson.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 Summary
Fields Modifier and Type Field Description protected String
filePath
protected int
indexInParent
protected String
keyInParent
protected com.fasterxml.jackson.core.TreeNode
node
-
Constructor Summary
Constructors Constructor Description JacksonElement(org.revapi.API api, org.revapi.Archive archive, String filePath, com.fasterxml.jackson.core.TreeNode node, int index)
JacksonElement(org.revapi.API api, org.revapi.Archive archive, String filePath, com.fasterxml.jackson.core.TreeNode node, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(E other)
protected String
createFullHumanReadableString()
boolean
equals(Object o)
String
getFilePath()
String
getFullHumanReadableString()
com.fasterxml.jackson.core.TreeNode
getNode()
String
getPath()
protected String
getPathPart()
String
getValueString()
int
hashCode()
void
setParent(E parent)
String
toString()
-
Methods inherited from class org.revapi.base.BaseElement
castThis, clone, getApi, getArchive, getChildren, getParent, getReferencedElements, getReferencingElements, iterateOverChildren, newChildrenInstance, newReference, searchChildren, searchChildren, setArchive
-
-
-
-
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 interfaceorg.revapi.Element<E extends JacksonElement<E>>
- Overrides:
setParent
in classorg.revapi.base.BaseElement<E extends JacksonElement<E>>
-
getFullHumanReadableString
@Nonnull public String getFullHumanReadableString()
- Specified by:
getFullHumanReadableString
in interfaceorg.revapi.Element<E extends JacksonElement<E>>
- Overrides:
getFullHumanReadableString
in classorg.revapi.base.BaseElement<E extends JacksonElement<E>>
-
createFullHumanReadableString
protected String createFullHumanReadableString()
-
compareTo
public int compareTo(E other)
-
getPathPart
protected String getPathPart()
-
-