@Target(value={TYPE,METHOD,CONSTRUCTOR,FIELD}) @Retention(value=CLASS) public @interface PrivateAPI
Any reference to a private API type from the SARL code is forbidden, except if the caller's type is also marked with this annotation.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
isCallerOnly
Indicate if the annotated element is a caller to the private API.
|
public abstract boolean isCallerOnly
true
if the annotated element is a caller to the private API, not a private API itself.
false
if the annotated element is both a caller to the private API, and a private API itself.Copyright © 2021 the original authors or authors.