public static enum IModuleAwareNameEnvironment.LookupStrategy extends java.lang.Enum<IModuleAwareNameEnvironment.LookupStrategy>
| Enum Constant and Description |
|---|
Any
Search all locations, module or otherwise.
|
AnyNamed
Search all named modules.
|
Named
Search a specific named module only.
|
Unnamed
Search only the unnamed module.
|
| Modifier and Type | Method and Description |
|---|---|
static IModuleAwareNameEnvironment.LookupStrategy |
get(char[] moduleName)
Get the lookup strategy corresponding to the given module name.
|
static java.lang.String |
getStringName(char[] moduleName)
If 'moduleName' is none of the special names (ANY, ANY_NAMED, UNNAMED) return the string converted name, else
null. |
<T> boolean |
matches(T elem,
java.util.function.Predicate<T> isNamed)
Test whether the given element matches this lookup strategy.
|
abstract <T> boolean |
matchesWithName(T elem,
java.util.function.Predicate<T> isNamed,
java.util.function.Predicate<T> nameMatcher)
Test whether the given element matches this lookup strategy.
|
static IModuleAwareNameEnvironment.LookupStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IModuleAwareNameEnvironment.LookupStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IModuleAwareNameEnvironment.LookupStrategy Named
public static final IModuleAwareNameEnvironment.LookupStrategy AnyNamed
public static final IModuleAwareNameEnvironment.LookupStrategy Any
public static final IModuleAwareNameEnvironment.LookupStrategy Unnamed
public static IModuleAwareNameEnvironment.LookupStrategy[] values()
for (IModuleAwareNameEnvironment.LookupStrategy c : IModuleAwareNameEnvironment.LookupStrategy.values()) System.out.println(c);
public static IModuleAwareNameEnvironment.LookupStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract <T> boolean matchesWithName(T elem,
java.util.function.Predicate<T> isNamed,
java.util.function.Predicate<T> nameMatcher)
elem - location being testsisNamed - predicate to determine if 'elem' represents a named modulenameMatcher - predicate to test if 'elem' matches the expected module namepublic <T> boolean matches(T elem,
java.util.function.Predicate<T> isNamed)
elem - location being testsisNamed - predicate to determine if 'elem' represents a named modulepublic static IModuleAwareNameEnvironment.LookupStrategy get(char[] moduleName)
public static java.lang.String getStringName(char[] moduleName)
null.