Enum Class ClassInfo.SearchType

java.lang.Object
java.lang.Enum<ClassInfo.SearchType>
org.spongepowered.asm.mixin.transformer.ClassInfo.SearchType
All Implemented Interfaces:
Serializable, Comparable<ClassInfo.SearchType>, Constable
Enclosing class:
ClassInfo

public static enum ClassInfo.SearchType extends Enum<ClassInfo.SearchType>
Search type for the findInHierarchy methods, replaces a boolean flag which made calling code difficult to read
  • Enum Constant Details

    • ALL_CLASSES

      public static final ClassInfo.SearchType ALL_CLASSES
      Include this class when searching in the hierarchy
    • SUPER_CLASSES_ONLY

      public static final ClassInfo.SearchType SUPER_CLASSES_ONLY
      Only walk the superclasses when searching the hierarchy
  • Method Details

    • values

      public static ClassInfo.SearchType[] 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 ClassInfo.SearchType 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