Package com.tngtech.archunit.core.domain
Class ThrowsClause<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
java.lang.Object
com.tngtech.archunit.base.ForwardingCollection<T>
com.tngtech.archunit.base.ForwardingList<ThrowsDeclaration<LOCATION>>
com.tngtech.archunit.core.domain.ThrowsClause<LOCATION>
- All Implemented Interfaces:
HasOwner<LOCATION>,Iterable<ThrowsDeclaration<LOCATION>>,Collection<ThrowsDeclaration<LOCATION>>,List<ThrowsDeclaration<LOCATION>>
@PublicAPI(usage=ACCESS)
public final class ThrowsClause<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
extends ForwardingList<ThrowsDeclaration<LOCATION>>
implements HasOwner<LOCATION>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPredefinedfunctionsto transformThrowsClause.Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasOwner
HasOwner.Predicates -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsType(DescribedPredicate<? super JavaClass> predicate) booleancontainsType(Class<?> type) booleancontainsType(String typeName) protected List<ThrowsDeclaration<LOCATION>>delegate()booleangetOwner()getTypes()inthashCode()iterator()intsize()toString()Methods inherited from class com.tngtech.archunit.base.ForwardingList
add, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subListMethods inherited from class com.tngtech.archunit.base.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Method Details
-
containsType
-
containsType
-
containsType
@PublicAPI(usage=ACCESS) public boolean containsType(DescribedPredicate<? super JavaClass> predicate) -
getTypes
-
getOwner
- Specified by:
getOwnerin interfaceHasOwner<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Returns:
- The "owner" of this object, compare
HasOwner
-
getDeclaringClass
-
size
- Specified by:
sizein interfaceCollection<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Specified by:
sizein interfaceList<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Overrides:
sizein classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
iterator
- Specified by:
iteratorin interfaceCollection<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Specified by:
iteratorin interfaceIterable<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Specified by:
iteratorin interfaceList<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Overrides:
iteratorin classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Specified by:
hashCodein interfaceList<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Overrides:
hashCodein classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
equals
- Specified by:
equalsin interfaceCollection<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Specified by:
equalsin interfaceList<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>- Overrides:
equalsin classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
toString
- Overrides:
toStringin classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
delegate
- Specified by:
delegatein classForwardingList<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-