org.kohsuke.accmod.restrictions
Class NoExternalUse

java.lang.Object
  extended by org.kohsuke.accmod.AccessRestriction
      extended by org.kohsuke.accmod.restrictions.DoNotUse
          extended by org.kohsuke.accmod.restrictions.NoExternalUse

public class NoExternalUse
extends DoNotUse

References are allowed only when they are within the same module (that is, if the reference is compiled at the same time as the restricted element.)

Otherwise the access is rejected.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.kohsuke.accmod.AccessRestriction
NONE
 
Constructor Summary
NoExternalUse()
           
 
Method Summary
 void error(Location loc, RestrictedElement target, ErrorListener errorListener)
           
 
Methods inherited from class org.kohsuke.accmod.restrictions.DoNotUse
instantiated, invoked, read, usedAsInterface, usedAsSuperType, written
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoExternalUse

public NoExternalUse()
Method Detail

error

public void error(Location loc,
                  RestrictedElement target,
                  ErrorListener errorListener)
Overrides:
error in class DoNotUse


Copyright © 2011. All Rights Reserved.