Package com.tngtech.archunit.core.domain
Class AccessTarget.MethodReferenceTarget
java.lang.Object
com.tngtech.archunit.core.domain.AccessTarget
com.tngtech.archunit.core.domain.AccessTarget.CodeUnitAccessTarget
com.tngtech.archunit.core.domain.AccessTarget.CodeUnitReferenceTarget
com.tngtech.archunit.core.domain.AccessTarget.MethodReferenceTarget
- 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.MethodReferenceTarget
extends AccessTarget.CodeUnitReferenceTarget
Represents a
AccessTarget.CodeUnitReferenceTarget
where the target is a method. For further elaboration about the necessity to distinguish
MethodReferenceTarget
from JavaMethod
refer to the documentation at AccessTarget
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Predefinedfunctions
to transformAccessTarget.MethodReferenceTarget
.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 TypeMethodDescriptionAttempts to resolve an imported method that matches this target.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.CodeUnitReferenceTarget
-
resolveMember
Attempts to resolve an imported method that matches this target. The process is the same as described atMethodCallTarget.resolveMember()
.- Overrides:
resolveMember
in classAccessTarget.CodeUnitAccessTarget
- Returns:
- Matching method if imported,
Optional.empty()
otherwise - See Also:
-
getDescription
-