public enum SimpleScopeType extends Enum<SimpleScopeType> implements ScopeType<SimpleScopeType>
ScopeType topology with only two levels.| Modifier and Type | Method and Description |
|---|---|
ScopeInstance |
defaultScopeInstance() |
boolean |
isLocal() |
Collection<SimpleScopeType> |
parentScopes() |
SimpleScopeType |
rootScope() |
static SimpleScopeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleScopeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleScopeType GLOBAL
public static final SimpleScopeType LOCAL
public static SimpleScopeType[] values()
for (SimpleScopeType c : SimpleScopeType.values()) System.out.println(c);
public static SimpleScopeType 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 boolean isLocal()
isLocal in interface ScopeType<SimpleScopeType>public Collection<SimpleScopeType> parentScopes()
parentScopes in interface ScopeType<SimpleScopeType>@Nullable public ScopeInstance defaultScopeInstance()
defaultScopeInstance in interface ScopeType<SimpleScopeType>ScopeInstance for this ScopeType, or null if no such default exists.public SimpleScopeType rootScope()
rootScope in interface ScopeType<SimpleScopeType>ScopeType in the DAG.