public final class ProbingEnvironment extends Object implements org.revapi.java.spi.TypeEnvironment
Constructor and Description |
---|
ProbingEnvironment(org.revapi.API api) |
Modifier and Type | Method and Description |
---|---|
org.revapi.API |
getApi() |
CountDownLatch |
getCompilationProgressLatch() |
CountDownLatch |
getCompilationTeardownLatch() |
Elements |
getElementUtils() |
JavaElementForest |
getTree() |
Types |
getTypeUtils() |
Map<String,Set<RawUseSite>> |
getUseSiteMap()
Keys are binary names of classes
|
boolean |
hasProcessingEnvironment() |
void |
setProcessingEnvironment(ProcessingEnvironment env) |
<R,P> R |
visitUseSites(TypeElement type,
org.revapi.java.spi.UseSite.Visitor<R,P> visitor,
P parameter) |
public org.revapi.API getApi()
public CountDownLatch getCompilationTeardownLatch()
public CountDownLatch getCompilationProgressLatch()
public JavaElementForest getTree()
public void setProcessingEnvironment(ProcessingEnvironment env)
public boolean hasProcessingEnvironment()
@Nonnull public Elements getElementUtils()
getElementUtils
in interface org.revapi.java.spi.TypeEnvironment
@Nonnull public Types getTypeUtils()
getTypeUtils
in interface org.revapi.java.spi.TypeEnvironment
@Nonnull public Map<String,Set<RawUseSite>> getUseSiteMap()
@Nullable public <R,P> R visitUseSites(@Nonnull TypeElement type, @Nonnull org.revapi.java.spi.UseSite.Visitor<R,P> visitor, @Nullable P parameter)
visitUseSites
in interface org.revapi.java.spi.TypeEnvironment
Copyright © 2016 Lukas Krejci. All Rights Reserved.