Class NamedStyles

java.lang.Object
org.openrewrite.style.NamedStyles
All Implemented Interfaces:
Marker
Direct Known Subclasses:
DeclarativeNamedStyles

public class NamedStyles extends Object implements Marker
A collection of styles by name, e.g., IntelliJ IDEA or Google Java Format.
  • Constructor Details

    • NamedStyles

      public NamedStyles()
  • Method Details

    • merge

      @Nullable public static <S extends Style> S merge(Class<S> styleClass, Iterable<? extends NamedStyles> namedStyles)
    • merge

      @Nullable public static @Nullable NamedStyles merge(List<NamedStyles> styles)
      Merge many NamedStyles into one NamedStyle.
      Parameters:
      styles - The styles to be merged. Styles earlier in the list take precedence over styles later in the list.
      Returns:
      A single merged style with the aggregate configuration of all inputs. null if the list is empty.
    • validate

      public Validated<Object> validate()