Package com.tngtech.archunit.core.domain
Class AccessTarget.ConstructorCallTarget
- java.lang.Object
-
- com.tngtech.archunit.core.domain.AccessTarget
-
- com.tngtech.archunit.core.domain.AccessTarget.CodeUnitCallTarget
-
- com.tngtech.archunit.core.domain.AccessTarget.ConstructorCallTarget
-
- All Implemented Interfaces:
CanBeAnnotated
,HasName
,HasName.AndFullName
,HasOwner<JavaClass>
,HasParameterTypes
,HasReturnType
,HasThrowsClause<AccessTarget.CodeUnitCallTarget>
- Enclosing class:
- AccessTarget
public static final class AccessTarget.ConstructorCallTarget extends AccessTarget.CodeUnitCallTarget
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccessTarget.ConstructorCallTarget.Functions
-
Nested classes/interfaces inherited from class com.tngtech.archunit.core.domain.AccessTarget
AccessTarget.CodeUnitCallTarget, AccessTarget.ConstructorCallTarget, AccessTarget.FieldAccessTarget, AccessTarget.MethodCallTarget, 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
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<JavaConstructor>
resolve()
Tries to resolve the targeted method or constructor.Optional<JavaConstructor>
resolveConstructor()
-
Methods inherited from class com.tngtech.archunit.core.domain.AccessTarget.CodeUnitCallTarget
getParameters, getRawParameterTypes, getRawReturnType, getReturnType, getThrowsClause
-
Methods inherited from class com.tngtech.archunit.core.domain.AccessTarget
equals, getFullName, getName, getOwner, hashCode, isAnnotatedWith, isAnnotatedWith, isAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, toString
-
-
-
-
Method Detail
-
resolveConstructor
@PublicAPI(usage=ACCESS) public Optional<JavaConstructor> resolveConstructor()
- Returns:
- A constructor that matches this target, or
Optional.absent()
if no matching constructor was imported.
-
resolve
@PublicAPI(usage=ACCESS) public java.util.Set<JavaConstructor> resolve()
Description copied from class:AccessTarget.CodeUnitCallTarget
Tries to resolve the targeted method or constructor.- Specified by:
resolve
in classAccessTarget.CodeUnitCallTarget
- Returns:
- constructors that match the target, this will always be either one constructor, or no constructor
- See Also:
resolveConstructor()
-
-