Interface GivenFieldsConjunction
-
- All Superinterfaces:
GivenConjunction<JavaField>
,GivenMembersConjunction<JavaField>
public interface GivenFieldsConjunction extends GivenMembersConjunction<JavaField>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldsThat<?>
and()
GivenFieldsConjunction
and(DescribedPredicate<? super JavaField> predicate)
Combines the current predicate (e.g.FieldsThat<?>
or()
GivenFieldsConjunction
or(DescribedPredicate<? super JavaField> predicate)
Combines the current predicate (e.g.FieldsShould<?>
should()
FieldsShouldConjunction
should(ArchCondition<? super JavaField> condition)
-
-
-
Method Detail
-
and
@PublicAPI(usage=ACCESS) FieldsThat<?> and()
- Specified by:
and
in interfaceGivenMembersConjunction<JavaField>
-
or
@PublicAPI(usage=ACCESS) FieldsThat<?> or()
- Specified by:
or
in interfaceGivenMembersConjunction<JavaField>
-
and
@PublicAPI(usage=ACCESS) GivenFieldsConjunction and(DescribedPredicate<? super JavaField> predicate)
Description copied from interface:GivenConjunction
Combines the current predicate (e.g.simpleName
== 'SomeClass') with another predicate (e.g.resideInAPackage
'foo.bar') using AND (i.e. both predicates must be satisfied).
NOTE:
GivenConjunction.and(DescribedPredicate)
andGivenConjunction.or(DescribedPredicate)
combine predicates in the sequence they are declared, without any "operator precedence". I.e.
all(objects()).that(predicateA).or(predicateB).and(predicateC)...
will filter on predicate
(predicateA || predicateB) && predicateC
, and
all(objects()).that(predicateA).and(predicateB).or(predicateC)...
will filter on predicate
(predicateA && predicateB) || predicateC
. If you need more control over the precedence, how predicates are joined, you have to join these predicates separately, i.e.
all(objects()).that(predicateA.or(predicateB.and(predicateC)))...
- Specified by:
and
in interfaceGivenConjunction<JavaField>
- Specified by:
and
in interfaceGivenMembersConjunction<JavaField>
- Parameters:
predicate
- The predicate to be ANDed on the current object filter predicate- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-
or
@PublicAPI(usage=ACCESS) GivenFieldsConjunction or(DescribedPredicate<? super JavaField> predicate)
Description copied from interface:GivenConjunction
Combines the current predicate (e.g.simpleName
== 'SomeClass') with another predicate (e.g.resideInAPackage
'foo.bar') using OR (i.e. at least one of the predicates must be satisfied).
NOTE: For considerations about precedence, when joining predicates, consider note at
GivenConjunction.and(DescribedPredicate)
- Specified by:
or
in interfaceGivenConjunction<JavaField>
- Specified by:
or
in interfaceGivenMembersConjunction<JavaField>
- Parameters:
predicate
- The predicate to be ORed on the current object filter predicate- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-
should
@PublicAPI(usage=ACCESS) FieldsShouldConjunction should(ArchCondition<? super JavaField> condition)
- Specified by:
should
in interfaceGivenConjunction<JavaField>
- Specified by:
should
in interfaceGivenMembersConjunction<JavaField>
-
should
@PublicAPI(usage=ACCESS) FieldsShould<?> should()
- Specified by:
should
in interfaceGivenMembersConjunction<JavaField>
-
-