Package org.revapi.jackson
Class JacksonArchiveAnalyzer<E extends JacksonElement<E>>
- java.lang.Object
-
- org.revapi.base.BaseArchiveAnalyzer<F,E>
-
- org.revapi.base.BaseEagerLoadingArchiveAnalyzer<F,E>
-
- org.revapi.base.ZipArchiveAnalyzer<org.revapi.base.BaseElementForest<E>,E>
-
- org.revapi.jackson.JacksonArchiveAnalyzer<E>
-
- All Implemented Interfaces:
org.revapi.ArchiveAnalyzer<E>
public abstract class JacksonArchiveAnalyzer<E extends JacksonElement<E>> extends org.revapi.base.ZipArchiveAnalyzer<org.revapi.base.BaseElementForest<E>,E>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JacksonArchiveAnalyzer(JacksonApiAnalyzer<E> apiAnalyzer, org.revapi.API api, Pattern pathMatcher, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Charset charset)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Set<E>
createElements(org.revapi.Archive a, ZipEntry entry, InputStream data)
protected org.revapi.base.BaseElementForest<E>
newElementForest()
protected abstract E
toElement(org.revapi.Archive archive, String filePath, com.fasterxml.jackson.core.TreeNode node, int indexInParent)
protected abstract E
toElement(org.revapi.Archive archive, String filePath, com.fasterxml.jackson.core.TreeNode node, String keyInParent)
-
Methods inherited from class org.revapi.base.BaseEagerLoadingArchiveAnalyzer
discoverElements, discoverRoots, preAnalyze
-
-
-
-
Constructor Detail
-
JacksonArchiveAnalyzer
protected JacksonArchiveAnalyzer(JacksonApiAnalyzer<E> apiAnalyzer, org.revapi.API api, @Nullable Pattern pathMatcher, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Charset charset)
-
-
Method Detail
-
newElementForest
protected org.revapi.base.BaseElementForest<E> newElementForest()
- Specified by:
newElementForest
in classorg.revapi.base.BaseArchiveAnalyzer<org.revapi.base.BaseElementForest<E extends JacksonElement<E>>,E extends JacksonElement<E>>
-
createElements
protected Set<E> createElements(org.revapi.Archive a, @Nullable ZipEntry entry, InputStream data) throws IOException
- Specified by:
createElements
in classorg.revapi.base.ZipArchiveAnalyzer<org.revapi.base.BaseElementForest<E extends JacksonElement<E>>,E extends JacksonElement<E>>
- Throws:
IOException
-
toElement
protected abstract E toElement(org.revapi.Archive archive, String filePath, com.fasterxml.jackson.core.TreeNode node, String keyInParent)
-
-