Class EclipseBasedStepBuilder.State

java.lang.Object
com.diffplug.spotless.extra.EclipseBasedStepBuilder.State
All Implemented Interfaces:
Serializable
Enclosing class:
EclipseBasedStepBuilder

public static class EclipseBasedStepBuilder.State extends Object implements Serializable
State of Eclipse configuration items, providing functionality to derived information based on the state.
See Also:
  • Constructor Details

    • State

      protected State(String formatterVersion, String formatterStepExt, JarState jarState, FileSignature settingsFiles)
      State constructor expects that all passed items are not modified afterwards
  • Method Details

    • getSemanticVersion

      public String getSemanticVersion()
    • getPreferences

      public Properties getPreferences()
      Get formatter preferences
    • loadClass

      public Class<?> loadClass(String name)
      Load class based on the given configuration of JAR provider and Maven coordinates. Different class loader instances are provided in the following scenarios:
      1. The JARs (jarState) have changes (this should only occur during development)
      2. Different configurations (settingsFiles) are used for different sub-projects
      3. The same Eclipse step implementation provides different formatter types (formatterStepExt)