io.sarl.lang.core.annotation
Annotation PrivateAPI
All Superinterfaces:
java.lang.annotation.Annotation
@java.lang.annotation.Target({TYPE,METHOD,CONSTRUCTOR,FIELD})
@java.lang.annotation.Retention(CLASS)
abstract annotation PrivateAPI
implements java.lang.annotation.Annotation
Annotation for marking an element to be part of the private API as a feature provider.

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.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.6
Action Summary
Modifier and type Action and description
abstract boolean isCallerOnly
Indicate if the annotated element is a caller to the private API.
Action Details
isCallerOnly
def isCallerOnly : boolean
Indicate if the annotated element is a caller to the private API.
Returns:
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.