|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.api.Scope
public final class Scope
Represents a Java visibility scope.
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)
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Scope NOTHING
public static final Scope PUBLIC
public static final Scope PROTECTED
public static final Scope PACKAGE
public static final Scope PRIVATE
public static final Scope ANONINNER
Method Detail |
---|
public String toString()
toString
in class Object
public String getName()
public int compareTo(Object aObject)
compareTo
in interface Comparable
public boolean isIn(Scope aScope)
aScope
- a Scope
value
this
is a subscope of aScope
.public static Scope getInstance(String aScopeName)
aScopeName
- scope name, such as "nothing", "public", etc.
Scope
associated with aScopeName
|
Back to the Checkstyle Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |