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