public class DoNotUse extends AccessRestriction
NONE
Constructor and Description |
---|
DoNotUse() |
Modifier and Type | Method and Description |
---|---|
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)
Copyright © 2013. All Rights Reserved.