Package com.ultikits.ultitools.utils
Enum Class EconomyUtils.MatchKind
- All Implemented Interfaces:
Serializable,Comparable<EconomyUtils.MatchKind>,java.lang.constant.Constable
- Enclosing class:
EconomyUtils
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EconomyUtils.MatchKindReturns the enum constant of this class with the specified name.static EconomyUtils.MatchKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No registered scan root matched this frame's class name at all. -
AMBIGUOUS
The closest (longest) matching scan root for this frame has 2+ distinct owners. -
RESOLVED
The closest (longest) matching scan root has exactly one owner.
-
-
Constructor Details
-
MatchKind
private MatchKind()
-
-
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
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 nameNullPointerException- if the argument is null
-