com.puppycrawl.tools.checkstyle.api
public final class Scope extends Object implements Comparable, Serializable
Field Summary | |
---|---|
static Scope | ANONINNER anon inner scope. |
static Scope | NOTHING nothing scope. |
static Scope | PACKAGE package scope. |
static Scope | PRIVATE private scope. |
static Scope | PROTECTED protected scope. |
static Scope | PUBLIC public scope. |
Method Summary | |
---|---|
int | compareTo(Object aObject)
{@inheritDoc} |
static Scope | getInstance(String aScopeName)
Scope factory method.
|
String | getName() |
boolean | isIn(Scope aScope)
Checks if this scope is a subscope of another scope.
|
String | toString()
{@inheritDoc} |
Parameters: aScopeName scope name, such as "nothing", "public", etc.
Returns: the Scope
associated with aScopeName
Returns: the name of this scope.
Parameters: aScope a Scope
value
Returns: if this
is a subscope of aScope
.