Package org.kohsuke.accmod.restrictions
Class ProtectedExternally
java.lang.Object
org.kohsuke.accmod.AccessRestriction
org.kohsuke.accmod.restrictions.None
org.kohsuke.accmod.restrictions.ProtectedExternally
A method which may be implemented/overridden from anywhere, including
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
).- Since:
- FIXME
-
Field Summary
Fields inherited from class org.kohsuke.accmod.AccessRestriction
NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invoked
(Location loc, RestrictedElement target, ErrorListener errorListener) The method on which this restriction is placed is invoked elsewhere.Methods inherited from class org.kohsuke.accmod.restrictions.None
instantiated, read, usedAsInterface, usedAsSuperType, written
Methods inherited from class org.kohsuke.accmod.AccessRestriction
appliesToNested
-
Constructor Details
-
ProtectedExternally
public ProtectedExternally()
-
-
Method Details
-
invoked
Description copied from class:AccessRestriction
The method on which this restriction is placed is invoked elsewhere.
-