public static class ProfileSupport.Violation extends Object
Modifier and Type | Method and Description |
---|---|
URL |
getFile()
Returns the file which violates the tested profile.
|
SourceLevelQuery.Profile |
getRequiredProfile()
Returns the
SourceLevelQuery.Profile required by a root or file. |
URL |
getRoot()
Returns the root which violates the tested profile.
|
ElementHandle<TypeElement> |
getUsedType()
Returns the type from higher
SourceLevelQuery.Profile causing the violation. |
@NonNull public URL getRoot()
URL
@CheckForNull public SourceLevelQuery.Profile getRequiredProfile()
SourceLevelQuery.Profile
required by a root or file.SourceLevelQuery.Profile
required by a root in the manifest
or by class (source) file under the root. May return a null if the
manifest contains invalid profile attribute.@CheckForNull public URL getFile()
@CheckForNull public ElementHandle<TypeElement> getUsedType()
SourceLevelQuery.Profile
causing the violation.