| java.lang.Object net.sf.clirr.core.ScopeSelector
ScopeSelector | final public class ScopeSelector (Code) | | Selects zero or more java scope values (public, protected, package,
private). An instance of this class is used when comparing two versions
of an application to indicate what items are of interest. When the target
audience is "normal" users of the applications, only changes to items
which have public or protected scope are relevant. When the audience is
developers of the applications, then package-scope and private-scope
changes are also of interest.
author: Simon Kitching |
Constructor Summary | |
public | ScopeSelector() Construct an instance which selects public and protected objects and
ignores package and private objects. | public | ScopeSelector(Scope scope) Construct an instance which selects public and protected objects and
ignores package and private objects. |
Method Summary | |
public Scope | getScope() Get the scope that this object is configured with. | public boolean | isSelected(Scoped scoped) Given a scoped object, return true if this object's scope is one of the
values this object is configured to match.
Parameters: scoped - is the object whose scope is to be checked. | public boolean | isSelected(Scope scope) Return true if objects of the specified scope, or more visible,
are selected by this selector. | public void | setScope(Scope scope) Specify which scope objects are of interest. | public String | toString() Return a string which indicates what scopes this object will consider
to be selected (ie relevant). |
ScopeSelector | public ScopeSelector()(Code) | | Construct an instance which selects public and protected objects and
ignores package and private objects. The selectXXX methods can later
be used to adjust this default behaviour.
|
ScopeSelector | public ScopeSelector(Scope scope)(Code) | | Construct an instance which selects public and protected objects and
ignores package and private objects. The selectXXX methods can later
be used to adjust this default behaviour.
|
getScope | public Scope getScope()(Code) | | Get the scope that this object is configured with.
|
isSelected | public boolean isSelected(Scoped scoped)(Code) | | Given a scoped object, return true if this object's scope is one of the
values this object is configured to match.
Parameters: scoped - is the object whose scope is to be checked. true if the object is selected. |
isSelected | public boolean isSelected(Scope scope)(Code) | | Return true if objects of the specified scope, or more visible,
are selected by this selector.
Parameters: scope - is the scope being checked true if objects of the specified scope are selected. |
setScope | public void setScope(Scope scope)(Code) | | Specify which scope objects are of interest.
|
toString | public String toString()(Code) | | Return a string which indicates what scopes this object will consider
to be selected (ie relevant).
|
|
|