public interface TypeEnvironment
ProcessingEnvironment and
serves the same purpose. To give a context to the API checking classes.| Modifier and Type | Method and Description |
|---|---|
Elements |
getElementUtils()
The instance of the utility class to examine the elements of the API (types, methods, etc.)
|
Types |
getTypeUtils()
The instance of the utility class to examine the types in the API.
|
Set<UseSite> |
getUseSites(TypeElement type)
Returns the known use sites of the given type.
|
boolean |
isExplicitPartOfAPI(TypeElement type)
Determines whether given class is explicitly part of the API being checked.
|
<R,P> R |
visitUseSites(TypeElement type,
UseSite.Visitor<R,P> visitor,
P parameter)
Visits all uses of the provided type and recursively all uses of the types of the use sites.
|
@Nonnull Elements getElementUtils()
Elements@Nonnull Types getTypeUtils()
Typesboolean isExplicitPartOfAPI(@Nonnull TypeElement type)
type - the type to check@Nonnull Set<UseSite> getUseSites(@Nonnull TypeElement type)
type - the type@Nullable <R,P> R visitUseSites(@Nonnull TypeElement type, @Nonnull UseSite.Visitor<R,P> visitor, @Nullable P parameter)
Copyright © 2014. All rights reserved.