Package org.revapi.java.model
Class JavaElementForest
- java.lang.Object
-
- org.revapi.base.BaseElementForest<org.revapi.java.spi.JavaElement>
-
- org.revapi.java.model.JavaElementForest
-
- All Implemented Interfaces:
org.revapi.ElementForest<org.revapi.java.spi.JavaElement>
public final class JavaElementForest extends org.revapi.base.BaseElementForest<org.revapi.java.spi.JavaElement>
- Since:
- 0.1
- Author:
- Lukas Krejci
-
-
Constructor Summary
Constructors Constructor Description JavaElementForest(org.revapi.API api)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedSet<org.revapi.java.spi.JavaElement>
getRoots()
SortedSet<org.revapi.java.spi.JavaElement>
getRootsUnsafe()
<T extends org.revapi.Element<T>>
Iterator<T>iterateOverElements(Class<T> resultType, boolean recurse, org.revapi.query.Filter<? super T> filter, org.revapi.Element<T> searchRoot)
void
setCompilationFuture(Future<?> compilation)
<T extends org.revapi.Element<org.revapi.java.spi.JavaElement>>
Stream<T>stream(Class<T> resultType, boolean recurse, org.revapi.Element<org.revapi.java.spi.JavaElement> searchRoot)
String
toString()
-
Methods inherited from class org.revapi.base.BaseElementForest
getApi, newRootsInstance, search, stream
-
-
-
-
Method Detail
-
setCompilationFuture
public void setCompilationFuture(Future<?> compilation)
-
getRoots
public SortedSet<org.revapi.java.spi.JavaElement> getRoots()
- Specified by:
getRoots
in interfaceorg.revapi.ElementForest<org.revapi.java.spi.JavaElement>
- Overrides:
getRoots
in classorg.revapi.base.BaseElementForest<org.revapi.java.spi.JavaElement>
-
getRootsUnsafe
public SortedSet<org.revapi.java.spi.JavaElement> getRootsUnsafe()
-
iterateOverElements
@Nonnull public <T extends org.revapi.Element<T>> Iterator<T> iterateOverElements(@Nonnull Class<T> resultType, boolean recurse, @Nullable org.revapi.query.Filter<? super T> filter, @Nullable org.revapi.Element<T> searchRoot)
-
stream
@Nonnull public <T extends org.revapi.Element<org.revapi.java.spi.JavaElement>> Stream<T> stream(@Nonnull Class<T> resultType, boolean recurse, @Nullable org.revapi.Element<org.revapi.java.spi.JavaElement> searchRoot)
-
toString
public String toString()
- Overrides:
toString
in classorg.revapi.base.BaseElementForest<org.revapi.java.spi.JavaElement>
-
-