public enum Scope extends Enum<Scope>
Enum Constant and Description |
---|
ANONINNER
Anonymous inner scope.
|
NOTHING
Nothing scope.
|
PACKAGE
Package or default scope.
|
PRIVATE
Private scope.
|
PROTECTED
Protected scope.
|
PUBLIC
Public scope.
|
Modifier and Type | Method and Description |
---|---|
static Scope |
getInstance(String scopeName)
Scope factory method.
|
String |
getName()
Returns name of severity level.
|
boolean |
isIn(Scope scope)
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.
|
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
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 nameNullPointerException
- if the argument is nullpublic String getName()
public boolean isIn(Scope scope)
scope
- a Scope
valuethis
is a subscope of scope
.Copyright © 2001–2018. All rights reserved.