Package org.kohsuke.accmod.restrictions
Class ProtectedExternally
- java.lang.Object
-
- org.kohsuke.accmod.AccessRestriction
-
- org.kohsuke.accmod.restrictions.None
-
- org.kohsuke.accmod.restrictions.ProtectedExternally
-
public class ProtectedExternally extends None
A method which may be implemented/overridden from anywhere, includingsuper
calls, but may not be otherwise called outside the source module. Akin to using theprotected
modifier but allowing “package” access elsewhere in the same package root, and also supporting interface methods. Note thatRestricted
is notInherited
so this only protects attempted accesses via the defining type; you will generally also want to restrict the implementations (for example asDoNotUse
).- Since:
- FIXME
-
-
Field Summary
-
Fields inherited from class org.kohsuke.accmod.AccessRestriction
NONE
-
-
Constructor Summary
Constructors Constructor Description ProtectedExternally()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
invoked
public void invoked(Location loc, RestrictedElement target, ErrorListener errorListener)
Description copied from class:AccessRestriction
The method on which this restriction is placed is invoked elsewhere.
-
-