public class ProtectedExternally extends None
super calls, but may not be otherwise called outside the source module.
Akin to using the protected modifier but allowing “package” access elsewhere in the same package root, and also supporting interface methods.
Note that Restricted is not Inherited so this only protects attempted accesses via the defining type;
you will generally also want to restrict the implementations (for example as DoNotUse).NONE| Constructor and Description |
|---|
ProtectedExternally() |
| Modifier and Type | Method and Description |
|---|---|
void |
invoked(Location loc,
RestrictedElement target,
ErrorListener errorListener)
The method on which this restriction is placed is invoked elsewhere.
|
instantiated, read, usedAsInterface, usedAsSuperType, writtenpublic void invoked(Location loc, RestrictedElement target, ErrorListener errorListener)
AccessRestrictionCopyright © 2017. All rights reserved.