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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionClassPathAssemblyOptions(ClassPathAssemblyMode mode, boolean followManifestClassPath, int maximumManifestClassPathEntries, int maximumManifestDepth, int maximumManifestBytes, int targetJavaRelease, InputEnumerationOptions enumerationOptions) ClassPathAssemblyOptions(ClassPathAssemblyMode mode, boolean followManifestClassPath, int maximumManifestClassPathEntries, int maximumManifestDepth, int maximumManifestBytes, int targetJavaRelease, InputEnumerationOptions enumerationOptions, ImportOptions importOptions) Creates an instance of aClassPathAssemblyOptionsrecord class.ClassPathAssemblyOptions(ClassPathAssemblyMode mode, boolean followManifestClassPath, int maximumManifestClassPathEntries, int maximumManifestDepth, int maximumManifestBytes, InputEnumerationOptions enumerationOptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassPathAssemblyOptionsReturns the value of theenumerationOptionsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefollowManifestClassPathrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theimportOptionsrecord component.intReturns the value of themaximumManifestBytesrecord component.intReturns the value of themaximumManifestClassPathEntriesrecord component.intReturns the value of themaximumManifestDepthrecord component.mode()Returns the value of themoderecord component.static ClassPathAssemblyOptionsintReturns the value of thetargetJavaReleaserecord component.final StringtoString()Returns a string representation of this record class.withImportOptions(ImportOptions value) withManifestClassPath(boolean enabled) withTargetJavaRelease(int release)
-
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 aClassPathAssemblyOptionsrecord class.- Parameters:
mode- the value for themoderecord componentfollowManifestClassPath- the value for thefollowManifestClassPathrecord componentmaximumManifestClassPathEntries- the value for themaximumManifestClassPathEntriesrecord componentmaximumManifestDepth- the value for themaximumManifestDepthrecord componentmaximumManifestBytes- the value for themaximumManifestBytesrecord componenttargetJavaRelease- the value for thetargetJavaReleaserecord componentenumerationOptions- the value for theenumerationOptionsrecord componentimportOptions- the value for theimportOptionsrecord 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
-
modulePathDefaults
-
withManifestClassPath
-
withTargetJavaRelease
-
withImportOptions
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
followManifestClassPath
public boolean followManifestClassPath()Returns the value of thefollowManifestClassPathrecord component.- Returns:
- the value of the
followManifestClassPathrecord component
-
maximumManifestClassPathEntries
public int maximumManifestClassPathEntries()Returns the value of themaximumManifestClassPathEntriesrecord component.- Returns:
- the value of the
maximumManifestClassPathEntriesrecord component
-
maximumManifestDepth
public int maximumManifestDepth()Returns the value of themaximumManifestDepthrecord component.- Returns:
- the value of the
maximumManifestDepthrecord component
-
maximumManifestBytes
public int maximumManifestBytes()Returns the value of themaximumManifestBytesrecord component.- Returns:
- the value of the
maximumManifestBytesrecord component
-
targetJavaRelease
public int targetJavaRelease()Returns the value of thetargetJavaReleaserecord component.- Returns:
- the value of the
targetJavaReleaserecord component
-
enumerationOptions
Returns the value of theenumerationOptionsrecord component.- Returns:
- the value of the
enumerationOptionsrecord component
-
importOptions
Returns the value of theimportOptionsrecord component.- Returns:
- the value of the
importOptionsrecord component
-