Enum Class Mode
- All Implemented Interfaces:
Serializable, Comparable<Mode>, Constable
Defines the available output modes for JWeaver.
A Mode represents a concrete, preconfigured output style.
Each mode selects an appropriate Weaver implementation and
determines the overall structure and level of detail of the generated
string representation.
Modes are intentionally explicit and non-combinable. They are designed to be simple, descriptive presets rather than a configurable matrix of options.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBullet-point style representation.Card-style representation.Compact, single-line representation.Flat, multi-line representation with improved readability.Multi-line representation with increased level of detail.Hierarchical tree-style representation. -
Method Summary
Modifier and TypeMethodDescriptionstatic WeavergetWeaverForMode(Mode mode) Returns a newWeaverinstance suitable for the given mode.booleanIndicates whether this mode produces multi-line output.static ModeReturns the enum constant of this class with the specified name.static Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INLINE
Compact, single-line representation.Suitable for logging and quick debugging output.
-
MULTILINE
Flat, multi-line representation with improved readability. -
MULTILINE_VERBOSE
Multi-line representation with increased level of detail.Typically includes deeper object traversal or additional metadata.
-
TREE
Hierarchical tree-style representation.Emphasizes object structure and relationships.
-
BULLET
Bullet-point style representation.Focuses on concise field listing.
-
CARD
Card-style representation.Presents objects in a structured, sectioned layout.
-
-
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
-
isMultiline
public boolean isMultiline()Indicates whether this mode produces multi-line output.- Returns:
trueif the mode uses a multi-line layout,falseotherwise
-
getWeaverForMode
-