Package com.tngtech.archunit.core.domain
Class AccessTarget.ConstructorCallTarget
java.lang.Object
com.tngtech.archunit.core.domain.AccessTarget
com.tngtech.archunit.core.domain.AccessTarget.CodeUnitAccessTarget
com.tngtech.archunit.core.domain.AccessTarget.CodeUnitCallTarget
com.tngtech.archunit.core.domain.AccessTarget.ConstructorCallTarget
- All Implemented Interfaces:
HasDescription
,CanBeAnnotated
,HasName
,HasName.AndFullName
,HasOwner<JavaClass>
,HasParameterTypes
,HasReturnType
,HasThrowsClause<AccessTarget.CodeUnitAccessTarget>
- Enclosing class:
- AccessTarget
@PublicAPI(usage=ACCESS)
public static final class AccessTarget.ConstructorCallTarget
extends AccessTarget.CodeUnitCallTarget
Represents a
AccessTarget.CodeUnitCallTarget
where the target is a constructor. For further elaboration about the necessity to distinguish
ConstructorCallTarget
from JavaConstructor
refer to the documentation at AccessTarget
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Predefinedfunctions
to transformAccessTarget.ConstructorCallTarget
.Nested classes/interfaces inherited from class com.tngtech.archunit.core.domain.AccessTarget
AccessTarget.CodeUnitAccessTarget, AccessTarget.CodeUnitCallTarget, AccessTarget.CodeUnitReferenceTarget, AccessTarget.ConstructorCallTarget, AccessTarget.ConstructorReferenceTarget, AccessTarget.FieldAccessTarget, AccessTarget.MethodCallTarget, AccessTarget.MethodReferenceTarget, AccessTarget.Predicates
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.CanBeAnnotated
CanBeAnnotated.Utils
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasName
HasName.AndFullName, HasName.Utils
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasParameterTypes
HasParameterTypes.Predicates
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasReturnType
HasReturnType.Predicates
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasThrowsClause
HasThrowsClause.Predicates
-
Method Summary
Modifier and TypeMethodDescriptionTries to resolve the targeted method or constructor.Methods inherited from class com.tngtech.archunit.core.domain.AccessTarget.CodeUnitAccessTarget
getParameterTypes, getRawParameterTypes, getRawReturnType, getReturnType
Methods inherited from class com.tngtech.archunit.core.domain.AccessTarget
equals, getFullName, getName, getOwner, hashCode, isAnnotatedWith, isAnnotatedWith, isAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, toString
-
Method Details
-
getThrowsClause
- Specified by:
getThrowsClause
in interfaceHasThrowsClause<AccessTarget.CodeUnitAccessTarget>
- Overrides:
getThrowsClause
in classAccessTarget.CodeUnitCallTarget
-
resolveMember
Description copied from class:AccessTarget.CodeUnitAccessTarget
Tries to resolve the targeted method or constructor.- Overrides:
resolveMember
in classAccessTarget.CodeUnitAccessTarget
- Returns:
- A constructor that matches this target, or
Optional.empty()
if no matching constructor was imported. - See Also:
-
getDescription
-