Class HasThrowsClause.Predicates
java.lang.Object
com.tngtech.archunit.core.domain.properties.HasThrowsClause.Predicates
- Enclosing interface:
- HasThrowsClause<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
Predefined
predicates
targeting objects that implement HasThrowsClause
-
Method Summary
Modifier and TypeMethodDescriptionstatic DescribedPredicate<HasThrowsClause<?>>
throwsClause
(DescribedPredicate<? super ThrowsClause<?>> predicate) static DescribedPredicate<HasThrowsClause<?>>
throwsClauseContainingType
(DescribedPredicate<? super JavaClass> predicate) static DescribedPredicate<HasThrowsClause<?>>
throwsClauseContainingType
(Class<? extends Throwable> type) static DescribedPredicate<HasThrowsClause<?>>
throwsClauseContainingType
(String typeName) static DescribedPredicate<HasThrowsClause<?>>
throwsClauseWithTypes
(Class<? extends Throwable>... types) static DescribedPredicate<HasThrowsClause<?>>
throwsClauseWithTypes
(String... typeNames) static DescribedPredicate<HasThrowsClause<?>>
throwsClauseWithTypes
(List<String> typeNames)
-
Method Details
-
throwsClauseWithTypes
@PublicAPI(usage=ACCESS) @SafeVarargs public static DescribedPredicate<HasThrowsClause<?>> throwsClauseWithTypes(Class<? extends Throwable>... types) -
throwsClauseWithTypes
@PublicAPI(usage=ACCESS) public static DescribedPredicate<HasThrowsClause<?>> throwsClauseWithTypes(String... typeNames) -
throwsClauseWithTypes
@PublicAPI(usage=ACCESS) public static DescribedPredicate<HasThrowsClause<?>> throwsClauseWithTypes(List<String> typeNames) -
throwsClauseContainingType
@PublicAPI(usage=ACCESS) public static DescribedPredicate<HasThrowsClause<?>> throwsClauseContainingType(Class<? extends Throwable> type) -
throwsClauseContainingType
@PublicAPI(usage=ACCESS) public static DescribedPredicate<HasThrowsClause<?>> throwsClauseContainingType(String typeName) -
throwsClauseContainingType
@PublicAPI(usage=ACCESS) public static DescribedPredicate<HasThrowsClause<?>> throwsClauseContainingType(DescribedPredicate<? super JavaClass> predicate) -
throwsClause
@PublicAPI(usage=ACCESS) public static DescribedPredicate<HasThrowsClause<?>> throwsClause(DescribedPredicate<? super ThrowsClause<?>> predicate)
-