Beta
, NoExternalUse
public class DoNotUse extends AccessRestriction
NONE
Constructor | Description |
---|---|
DoNotUse() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
appliesToNested() |
Whether this access restriction, if applied to a type, should also be considered to apply implicitly to all transitively nested members.
|
void |
error(Location loc,
RestrictedElement target,
ErrorListener errorListener) |
|
void |
instantiated(Location loc,
RestrictedElement target,
ErrorListener errorListener) |
The type on which this restriction is placed is instantiated elsewhere.
|
void |
invoked(Location loc,
RestrictedElement target,
ErrorListener errorListener) |
The method on which this restriction is placed is invoked elsewhere.
|
void |
read(Location loc,
RestrictedElement target,
ErrorListener errorListener) |
The field on which this restriction is placed is read.
|
void |
usedAsInterface(Location loc,
RestrictedElement target,
ErrorListener errorListener) |
The type on which this restriction is placed is used as an interface that another class/interface implements.
|
void |
usedAsSuperType(Location loc,
RestrictedElement target,
ErrorListener errorListener) |
The type on which this restriction is placed is used as a supertype by another class.
|
void |
written(Location loc,
RestrictedElement target,
ErrorListener errorListener) |
The field on which this restriction is placed is updated.
|
public void written(Location loc, RestrictedElement target, ErrorListener errorListener)
AccessRestriction
written
in class AccessRestriction
public void usedAsSuperType(Location loc, RestrictedElement target, ErrorListener errorListener)
AccessRestriction
usedAsSuperType
in class AccessRestriction
loc
- Points to the subtype.errorListener
- Report any error here.public void usedAsInterface(Location loc, RestrictedElement target, ErrorListener errorListener)
AccessRestriction
usedAsInterface
in class AccessRestriction
loc
- Points to the subtype.errorListener
- Report any error here.public void instantiated(Location loc, RestrictedElement target, ErrorListener errorListener)
AccessRestriction
instantiated
in class AccessRestriction
public void invoked(Location loc, RestrictedElement target, ErrorListener errorListener)
AccessRestriction
invoked
in class AccessRestriction
public void read(Location loc, RestrictedElement target, ErrorListener errorListener)
AccessRestriction
read
in class AccessRestriction
public void error(Location loc, RestrictedElement target, ErrorListener errorListener)
public boolean appliesToNested()
AccessRestriction
appliesToNested
in class AccessRestriction
Copyright © 2018. All rights reserved.