Interface GivenMethods
-
- All Superinterfaces:
GivenCodeUnits<JavaMethod>
,GivenMembers<JavaMethod>
,GivenObjects<JavaMethod>
public interface GivenMethods extends GivenCodeUnits<JavaMethod>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodsShould<?>
should()
Allows to specify assertions for the set of members under consideration.MethodsShouldConjunction
should(ArchCondition<? super JavaMethod> condition)
Allows to specify assertions for the set of members under consideration.MethodsThat<?>
that()
Allows to restrict the set of members under consideration.GivenMethodsConjunction
that(DescribedPredicate<? super JavaMethod> predicate)
Allows to restrict the set of members under consideration.
-
-
-
Method Detail
-
that
@PublicAPI(usage=ACCESS) MethodsThat<?> that()
Description copied from interface:GivenMembers
- Specified by:
that
in interfaceGivenCodeUnits<JavaMethod>
- Specified by:
that
in interfaceGivenMembers<JavaMethod>
- Returns:
- A syntax element, which can be used to restrict the members under consideration
-
that
@PublicAPI(usage=ACCESS) GivenMethodsConjunction that(DescribedPredicate<? super JavaMethod> predicate)
Description copied from interface:GivenMembers
- Specified by:
that
in interfaceGivenCodeUnits<JavaMethod>
- Specified by:
that
in interfaceGivenMembers<JavaMethod>
- Specified by:
that
in interfaceGivenObjects<JavaMethod>
- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-
should
@PublicAPI(usage=ACCESS) MethodsShould<?> should()
Description copied from interface:GivenMembers
Allows to specify assertions for the set of members under consideration. E.g.
members()
.should()
.haveName("foo")
- Specified by:
should
in interfaceGivenCodeUnits<JavaMethod>
- Specified by:
should
in interfaceGivenMembers<JavaMethod>
- Returns:
- A syntax element, which can be used to restrict the members under consideration
-
should
@PublicAPI(usage=ACCESS) MethodsShouldConjunction should(ArchCondition<? super JavaMethod> condition)
Description copied from interface:GivenMembers
Allows to specify assertions for the set of members under consideration. E.g.
members()
.should(haveName("foo"))
- Specified by:
should
in interfaceGivenCodeUnits<JavaMethod>
- Specified by:
should
in interfaceGivenMembers<JavaMethod>
- Specified by:
should
in interfaceGivenObjects<JavaMethod>
- Returns:
- A syntax element, which can be used to restrict the members under consideration
-
-