Package com.tngtech.archunit.core.domain
Class InstanceofCheck
java.lang.Object
com.tngtech.archunit.core.domain.InstanceofCheck
- All Implemented Interfaces:
HasOwner<JavaCodeUnit>
,HasSourceCodeLocation
,HasType
@PublicAPI(usage=ACCESS)
public final class InstanceofCheck
extends Object
implements HasType, HasOwner<JavaCodeUnit>, HasSourceCodeLocation
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasOwner
HasOwner.Functions, HasOwner.Predicates
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasType
HasType.Functions, HasType.Predicates
-
Method Summary
-
Method Details
-
getRawType
- Specified by:
getRawType
in interfaceHasType
- Returns:
- The raw type of this object. This is effectively the same as calling
HasType.getType()
.toErasure()
. E.g. given aJavaParameterizedType
java.util.List<String>
the raw type (i.e. type erasure) would be theJavaClass
java.util.List
. - See Also:
-
getType
-
getOwner
- Specified by:
getOwner
in interfaceHasOwner<JavaCodeUnit>
- Returns:
- The "owner" of this object, compare
HasOwner
-
getLineNumber
-
isDeclaredInLambda
-
getSourceCodeLocation
- Specified by:
getSourceCodeLocation
in interfaceHasSourceCodeLocation
- Returns:
- The
SourceCodeLocation
of this object, i.e. how to locate the respective object within the set of source files.
-
toString
-