Enum Class EconomyUtils.MatchKind

java.lang.Object
java.lang.Enum<EconomyUtils.MatchKind>
com.ultikits.ultitools.utils.EconomyUtils.MatchKind
All Implemented Interfaces:
Serializable, Comparable<EconomyUtils.MatchKind>, java.lang.constant.Constable
Enclosing class:
EconomyUtils

private static enum EconomyUtils.MatchKind extends Enum<EconomyUtils.MatchKind>
The three possible outcomes of matching one stack frame against prefixToModule (Codex P2, PR #463, round 3): a bare null return collapsed "this frame belongs to no registered module" and "this frame's closest root is claimed by two or more DIFFERENT modules" into the same value, and the last two review rounds both found a defect that traces straight back to that conflation — a NONE frame must let the per-frame walk continue outward (a real non-match, no evidence either way), while an AMBIGUOUS frame must terminate the walk immediately (real evidence that a module frame exists here, but WHICH module cannot be determined) — see EconomyUtils.attributeModule(StackTraceElement[], Map)'s own javadoc for why continuing past an ambiguous frame is itself the bug.
  • Enum Constant Details

    • NONE

      public static final EconomyUtils.MatchKind NONE
      No registered scan root matched this frame's class name at all.
    • AMBIGUOUS

      public static final EconomyUtils.MatchKind AMBIGUOUS
      The closest (longest) matching scan root for this frame has 2+ distinct owners.
    • RESOLVED

      public static final EconomyUtils.MatchKind RESOLVED
      The closest (longest) matching scan root has exactly one owner.
  • Constructor Details

    • MatchKind

      private MatchKind()
  • Method Details

    • values

      public static EconomyUtils.MatchKind[] 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 EconomyUtils.MatchKind 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