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() |
JavaTypeElement |
getModelElement(TypeElement javaType)
Returns full Revapi representation of the provided java type.
|
default JavaTypeElement |
getModelElement(TypeMirror type)
A variant of
getModelElement(TypeElement) that accepts a type mirror. |
Types |
getTypeUtils() |
@Nonnull Elements getElementUtils()
Elements
@Nonnull Types getTypeUtils()
Types
JavaTypeElement getModelElement(TypeElement javaType)
JavaModelElement.getDeclaringElement()
on the type level.
For elements that were not fully analyzed (for example the types included in the Java runtime) a stub implementation is returned that reflects the findings of the analysis but may not reflect the full state of the type (for example use sites not encountered during the analysis will be missing, etc.)
javaType
- the java typedefault JavaTypeElement getModelElement(TypeMirror type)
getModelElement(TypeElement)
that accepts a type mirror.
Returns null if the provided type mirror doesn't represent a declared type.type
- the type mirror to try and find the model representation ofgetModelElement(TypeElement)
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.