Package com.tngtech.archunit.core.domain
Class JavaAccess<TARGET extends AccessTarget>
java.lang.Object
com.tngtech.archunit.core.domain.JavaAccess<TARGET>
- All Implemented Interfaces:
HasDescription
,HasName
,HasOwner<JavaCodeUnit>
,HasSourceCodeLocation
- Direct Known Subclasses:
JavaCodeUnitAccess
,JavaFieldAccess
@PublicAPI(usage=ACCESS)
public abstract class JavaAccess<TARGET extends AccessTarget>
extends Object
implements HasName, HasDescription, HasOwner<JavaCodeUnit>, HasSourceCodeLocation
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Predefinedfunctions
to transformJavaAccess
.static final class
Predefinedpredicates
targetingJavaAccess
.Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasName
HasName.AndFullName, HasName.Utils
-
Method Summary
-
Method Details
-
getName
-
getOrigin
-
getOriginOwner
-
getTargetOwner
-
getTarget
-
getLineNumber
-
getOwner
- Specified by:
getOwner
in interfaceHasOwner<TARGET extends AccessTarget>
- Returns:
- The "owner" of this object, compare
HasOwner
-
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.
-
isDeclaredInLambda
-
toString
-
getDescription
- Specified by:
getDescription
in interfaceHasDescription
-
descriptionVerb
-
getContainingTryBlocks
- Returns:
- All try-catch-blocks where this
JavaAccess
is contained within the try-part the try-catch-block
-