Interface GivenClasses
-
- All Superinterfaces:
GivenObjects<JavaClass>
public interface GivenClasses extends GivenObjects<JavaClass>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassesShould
should()
Allows to specify assertions for the set of classes under consideration.ClassesShouldConjunction
should(ArchCondition<? super JavaClass> condition)
Allows to specify assertions for the set of classes under consideration.ClassesThat<GivenClassesConjunction>
that()
Allows to restrict the set of classes under consideration.GivenClassesConjunction
that(DescribedPredicate<? super JavaClass> predicate)
Allows to restrict the set of classes under consideration.
-
-
-
Method Detail
-
that
@PublicAPI(usage=ACCESS) ClassesThat<GivenClassesConjunction> that()
Allows to restrict the set of classes under consideration. E.g.
classes()
.that()
.haveSimpleName("Example")
- Returns:
- A syntax element, which can be used to restrict the classes under consideration
-
that
@PublicAPI(usage=ACCESS) GivenClassesConjunction that(DescribedPredicate<? super JavaClass> predicate)
Allows to restrict the set of classes under consideration. E.g.
classes()
.that(haveSimpleName("Example"))
- Specified by:
that
in interfaceGivenObjects<JavaClass>
- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-
should
@PublicAPI(usage=ACCESS) ClassesShould should()
Allows to specify assertions for the set of classes under consideration. E.g.
classes()
.should()
.haveSimpleName("Example")
- Returns:
- A syntax element, which can be used to restrict the classes under consideration
-
should
@PublicAPI(usage=ACCESS) ClassesShouldConjunction should(ArchCondition<? super JavaClass> condition)
Allows to specify assertions for the set of classes under consideration. E.g.
classes()
.should(haveSimpleName("Example"))
- Specified by:
should
in interfaceGivenObjects<JavaClass>
- Returns:
- A syntax element, which can be used to restrict the classes under consideration
-
-