Enum Class Scope
- All Implemented Interfaces:
- Serializable,- Comparable<Scope>,- Constable
Represents a Java visibility scope.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ScopegetInstance(String scopeName) Scope factory method.getName()Returns name of severity level.booleanChecks if this scope is a subscope of another scope.toString()static ScopeReturns the enum constant of this class with the specified name.static Scope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
NOTHINGNothing scope.
- 
PUBLICPublic scope.
- 
PROTECTEDProtected scope.
- 
PACKAGEPackage or default scope.
- 
PRIVATEPrivate scope.
- 
ANONINNERAnonymous inner scope.
 
- 
- 
Constructor Details- 
Scopeprivate Scope()
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
toString
- 
getNameReturns name of severity level.- Returns:
- the name of this severity level.
 
- 
isInChecks if this scope is a subscope of another scope. Example: PUBLIC is a subscope of PRIVATE.- Parameters:
- scope- a- Scopevalue
- Returns:
- if thisis a subscope ofscope.
 
- 
getInstanceScope factory method.- Parameters:
- scopeName- scope name, such as "nothing", "public", etc.
- Returns:
- the Scopeassociated withscopeName
 
 
-