Class ImportOptions.ExcludeScalaImportOption

  • All Implemented Interfaces:
    com.tngtech.archunit.core.importer.ImportOption
    Enclosing class:
    ImportOptions

    public static final class ImportOptions.ExcludeScalaImportOption
    extends Object
    implements com.tngtech.archunit.core.importer.ImportOption
    Excludes Scala classes on a best-effort basis.

    ArchUnit doesn't yet support fully Scala. This is a best-effort attempt to not import Scala classes in the first place. However, it is not perfect, and thus GivenJavaClasses or SourcePredicates.areJavaClasses() should be used in rules as well.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.tngtech.archunit.core.importer.ImportOption

        com.tngtech.archunit.core.importer.ImportOption.DoNotIncludeArchives, com.tngtech.archunit.core.importer.ImportOption.DoNotIncludeJars, com.tngtech.archunit.core.importer.ImportOption.DoNotIncludePackageInfos, com.tngtech.archunit.core.importer.ImportOption.DoNotIncludeTests, com.tngtech.archunit.core.importer.ImportOption.OnlyIncludeTests, com.tngtech.archunit.core.importer.ImportOption.Predefined
    • Constructor Detail

      • ExcludeScalaImportOption

        public ExcludeScalaImportOption()
    • Method Detail

      • includes

        public boolean includes​(com.tngtech.archunit.core.importer.Location location)
        Specified by:
        includes in interface com.tngtech.archunit.core.importer.ImportOption