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
Modifier and TypeClassDescriptionstatic final class
Predefinedfunctions
to transformThrowsClause
.Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasOwner
HasOwner.Predicates
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsType
(DescribedPredicate<? super JavaClass> predicate) boolean
containsType
(Class<?> type) boolean
containsType
(String typeName) protected List<ThrowsDeclaration<LOCATION>>
delegate()
boolean
getOwner()
getTypes()
int
hashCode()
iterator()
int
size()
toString()
Methods inherited from class com.tngtech.archunit.base.ForwardingList
add, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
Methods inherited from class com.tngtech.archunit.base.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
getOwner
in interfaceHasOwner<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Returns:
- The "owner" of this object, compare
HasOwner
-
getDeclaringClass
-
size
- Specified by:
size
in interfaceCollection<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Specified by:
size
in interfaceList<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Overrides:
size
in classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
iterator
- Specified by:
iterator
in interfaceCollection<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Specified by:
iterator
in interfaceIterable<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Specified by:
iterator
in interfaceList<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Overrides:
iterator
in classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Specified by:
hashCode
in interfaceList<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Overrides:
hashCode
in classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
equals
- Specified by:
equals
in interfaceCollection<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Specified by:
equals
in interfaceList<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>
- Overrides:
equals
in classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
toString
- Overrides:
toString
in classForwardingCollection<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-
delegate
- Specified by:
delegate
in classForwardingList<ThrowsDeclaration<LOCATION extends HasParameterTypes & HasReturnType & HasName.AndFullName & CanBeAnnotated & HasOwner<JavaClass>>>
-