Enum Class IModuleAwareNameEnvironment.LookupStrategy

java.lang.Object
java.lang.Enum<IModuleAwareNameEnvironment.LookupStrategy>
org.aspectj.org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment.LookupStrategy
All Implemented Interfaces:
Serializable, Comparable<IModuleAwareNameEnvironment.LookupStrategy>, java.lang.constant.Constable
Enclosing interface:
IModuleAwareNameEnvironment

public static enum IModuleAwareNameEnvironment.LookupStrategy extends Enum<IModuleAwareNameEnvironment.LookupStrategy>
Strategies for searching types & packages in classpath locations & modules.
  • Enum Constant Details

  • Method Details

    • values

      Returns 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
    • valueOf

      public static IModuleAwareNameEnvironment.LookupStrategy valueOf(String name)
      Returns 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
    • matchesWithName

      public abstract <T> boolean matchesWithName(T elem, Predicate<T> isNamed, Predicate<T> nameMatcher)
      Test whether the given element matches this lookup strategy.
      Parameters:
      elem - location being tests
      isNamed - predicate to determine if 'elem' represents a named module
      nameMatcher - predicate to test if 'elem' matches the expected module name
      Returns:
      true iff the given element matches this lookup strategy.
    • matches

      public <T> boolean matches(T elem, Predicate<T> isNamed)
      Test whether the given element matches this lookup strategy.
      Parameters:
      elem - location being tests
      isNamed - predicate to determine if 'elem' represents a named module
      Returns:
      true iff the given element matches this lookup strategy.
    • get

      public static IModuleAwareNameEnvironment.LookupStrategy get(char[] moduleName)
      Get the lookup strategy corresponding to the given module name.
    • getStringName

      public static String getStringName(char[] moduleName)
      If 'moduleName' is none of the special names (ANY, ANY_NAMED, UNNAMED) return the string converted name, else null.