Enum Class DebugAspect
- All Implemented Interfaces:
Serializable, Comparable<DebugAspect>, Constable
Which slice of the generated debug information a
@DEBUG directive asserts against.
A @DEBUG directive is deliberately finer-grained than @BYTECODE: it keeps ONE
javap section for ONE construct so that a debug-info defect (a wrong source line, a wrong local
range, a wrong SMAP mapping) is localised to the aspect that OWNS it, rather than surfacing later
as a misbehaving step/breakpoint that has to be diagnosed backwards. See
docs/strategic/SPEC-agentic-debugger.md ยง9.2.
Each aspect names the javap section it extracts (via
JavapSectionExtractor). How the extracted section is
normalised is aspect-specific and lives in DebugDirectiveListener:
LINESโ theLineNumberTable, normalised to the source-line SEQUENCE (the program-counter of each entry is dropped) so the golden asserts WHICH source lines map, in order, and is immune to instruction-offset churn.LOCALSโ theLocalVariableTable, kept WITH its Start/Length ranges, because those pc-based ranges ARE the assertion (the WP-B per-variable declaration-label work targets exactly them).SMAPโ theSourceDebugExtension(JSR-45 stratum line map), kept as-is.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionThe javap section header word (without the trailing colon) this aspect extracts.static DebugAspectReturns the enum constant of this class with the specified name.static DebugAspect[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LINES
-
LOCALS
-
SMAP
-
-
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
-
javapSection
The javap section header word (without the trailing colon) this aspect extracts.
-