public class GivenJavaClasses extends Object
ArchRuleDefinition.classes()
and similar methods with a restriction on Java
classes.
ArchUnit does not yet fully support Scala. Rules should therefore use these methods instead to restrict themselves to Java classes.
Modifier and Type | Method and Description |
---|---|
static com.tngtech.archunit.lang.syntax.elements.ClassesThat<com.tngtech.archunit.lang.syntax.elements.GivenClassesConjunction> |
javaClassesThat()
Equivalent of
ArchRuleDefinition.classes() , but only for Java classes. |
static com.tngtech.archunit.lang.syntax.elements.GivenClassesConjunction |
javaClassesThat(com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaClass> predicate)
Equivalent of
ArchRuleDefinition.classes() , but only for Java classes. |
static com.tngtech.archunit.lang.syntax.elements.ClassesThat<com.tngtech.archunit.lang.syntax.elements.GivenClassesConjunction> |
noJavaClassesThat()
Equivalent of
ArchRuleDefinition.noClasses() , but only for Java classes. |
static com.tngtech.archunit.lang.syntax.elements.GivenClassesConjunction |
noJavaClassesThat(com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaClass> predicate)
Equivalent of
ArchRuleDefinition.noClasses() , but only for Java classes. |
public static com.tngtech.archunit.lang.syntax.elements.ClassesThat<com.tngtech.archunit.lang.syntax.elements.GivenClassesConjunction> javaClassesThat()
ArchRuleDefinition.classes()
, but only for Java classes.public static com.tngtech.archunit.lang.syntax.elements.GivenClassesConjunction javaClassesThat(com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaClass> predicate)
ArchRuleDefinition.classes()
, but only for Java classes.public static com.tngtech.archunit.lang.syntax.elements.ClassesThat<com.tngtech.archunit.lang.syntax.elements.GivenClassesConjunction> noJavaClassesThat()
ArchRuleDefinition.noClasses()
, but only for Java classes.public static com.tngtech.archunit.lang.syntax.elements.GivenClassesConjunction noJavaClassesThat(com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaClass> predicate)
ArchRuleDefinition.noClasses()
, but only for Java classes.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.