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, includingsupercalls, but may not be otherwise called outside the source module. Akin to using theprotectedmodifier but allowing “package” access elsewhere in the same package root, and also supporting interface methods. Note thatRestrictedis notInheritedso 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 voidinvoked(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:AccessRestrictionThe method on which this restriction is placed is invoked elsewhere.
-
-