|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Scope>
com.puppycrawl.tools.checkstyle.api.Scope
public enum Scope
Represents a Java visibility scope.
Enum Constant Summary | |
---|---|
ANONINNER
anonymous inner scope. |
|
NOTHING
nothing scope. |
|
PACKAGE
package or default scope. |
|
PRIVATE
private scope. |
|
PROTECTED
protected scope. |
|
PUBLIC
protected scope. |
Method Summary | |
---|---|
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()
|
static Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Scope[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant 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 static Scope[] values()
for (Scope c : Scope.values()) System.out.println(c);
public static Scope valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Scope>
public String getName()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |