|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.clirr.core.ScopeSelector
public final class ScopeSelector
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.
Constructor Summary | |
---|---|
ScopeSelector()
Construct an instance which selects public and protected objects and ignores package and private objects. |
|
ScopeSelector(Scope scope)
Construct an instance which selects public and protected objects and ignores package and private objects. |
Method Summary | |
---|---|
Scope |
getScope()
Get the scope that this object is configured with. |
boolean |
isSelected(Scope scope)
Return true if objects of the specified scope, or more visible, are selected by this selector. |
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. |
void |
setScope(Scope scope)
Specify which scope objects are of interest. |
java.lang.String |
toString()
Return a string which indicates what scopes this object will consider to be selected (ie relevant). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScopeSelector()
public ScopeSelector(Scope scope)
Method Detail |
---|
public void setScope(Scope scope)
public Scope getScope()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isSelected(Scoped scoped)
scoped
- is the object whose scope is to be checked.
public boolean isSelected(Scope scope)
scope
- is the scope being checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |