Class ImportOptions.ExcludeScalaImportOption

java.lang.Object
org.apache.flink.architecture.common.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.DoNotIncludeGradleTestFixtures, 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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    includes(com.tngtech.archunit.core.importer.Location location)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExcludeScalaImportOption

      public ExcludeScalaImportOption()
  • Method Details

    • includes

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