public final class ScopeSelector
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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).
|
public ScopeSelector()
public ScopeSelector(Scope scope)
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 checkedCopyright © 2003-2012 Lars K??hne. All Rights Reserved.