Record Class ClassPathAssemblyOptions

java.lang.Object
java.lang.Record
dev.archunitjava.importer.ClassPathAssemblyOptions

public record ClassPathAssemblyOptions(ClassPathAssemblyMode mode, boolean followManifestClassPath, int maximumManifestClassPathEntries, int maximumManifestDepth, int maximumManifestBytes, int targetJavaRelease, InputEnumerationOptions enumerationOptions, ImportOptions importOptions) extends Record
Explicit lookup mode, traversal bounds, and opt-in manifest expansion policy.
  • Field Details

    • DEFAULT_MAXIMUM_MANIFEST_ENTRIES

      public static final int DEFAULT_MAXIMUM_MANIFEST_ENTRIES
      See Also:
    • DEFAULT_MAXIMUM_MANIFEST_DEPTH

      public static final int DEFAULT_MAXIMUM_MANIFEST_DEPTH
      See Also:
    • DEFAULT_MAXIMUM_MANIFEST_BYTES

      public static final int DEFAULT_MAXIMUM_MANIFEST_BYTES
      See Also:
  • Constructor Details

    • ClassPathAssemblyOptions

      public ClassPathAssemblyOptions(ClassPathAssemblyMode mode, boolean followManifestClassPath, int maximumManifestClassPathEntries, int maximumManifestDepth, int maximumManifestBytes, int targetJavaRelease, InputEnumerationOptions enumerationOptions, ImportOptions importOptions)
      Creates an instance of a ClassPathAssemblyOptions record class.
      Parameters:
      mode - the value for the mode record component
      followManifestClassPath - the value for the followManifestClassPath record component
      maximumManifestClassPathEntries - the value for the maximumManifestClassPathEntries record component
      maximumManifestDepth - the value for the maximumManifestDepth record component
      maximumManifestBytes - the value for the maximumManifestBytes record component
      targetJavaRelease - the value for the targetJavaRelease record component
      enumerationOptions - the value for the enumerationOptions record component
      importOptions - the value for the importOptions record component
    • ClassPathAssemblyOptions

      public ClassPathAssemblyOptions(ClassPathAssemblyMode mode, boolean followManifestClassPath, int maximumManifestClassPathEntries, int maximumManifestDepth, int maximumManifestBytes, int targetJavaRelease, InputEnumerationOptions enumerationOptions)
    • ClassPathAssemblyOptions

      public ClassPathAssemblyOptions(ClassPathAssemblyMode mode, boolean followManifestClassPath, int maximumManifestClassPathEntries, int maximumManifestDepth, int maximumManifestBytes, InputEnumerationOptions enumerationOptions)
  • Method Details

    • classPathDefaults

      public static ClassPathAssemblyOptions classPathDefaults()
    • modulePathDefaults

      public static ClassPathAssemblyOptions modulePathDefaults()
    • withManifestClassPath

      public ClassPathAssemblyOptions withManifestClassPath(boolean enabled)
    • withTargetJavaRelease

      public ClassPathAssemblyOptions withTargetJavaRelease(int release)
    • withImportOptions

      public ClassPathAssemblyOptions withImportOptions(ImportOptions value)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mode

      public ClassPathAssemblyMode mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • followManifestClassPath

      public boolean followManifestClassPath()
      Returns the value of the followManifestClassPath record component.
      Returns:
      the value of the followManifestClassPath record component
    • maximumManifestClassPathEntries

      public int maximumManifestClassPathEntries()
      Returns the value of the maximumManifestClassPathEntries record component.
      Returns:
      the value of the maximumManifestClassPathEntries record component
    • maximumManifestDepth

      public int maximumManifestDepth()
      Returns the value of the maximumManifestDepth record component.
      Returns:
      the value of the maximumManifestDepth record component
    • maximumManifestBytes

      public int maximumManifestBytes()
      Returns the value of the maximumManifestBytes record component.
      Returns:
      the value of the maximumManifestBytes record component
    • targetJavaRelease

      public int targetJavaRelease()
      Returns the value of the targetJavaRelease record component.
      Returns:
      the value of the targetJavaRelease record component
    • enumerationOptions

      public InputEnumerationOptions enumerationOptions()
      Returns the value of the enumerationOptions record component.
      Returns:
      the value of the enumerationOptions record component
    • importOptions

      public ImportOptions importOptions()
      Returns the value of the importOptions record component.
      Returns:
      the value of the importOptions record component