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
Nested ClassesModifier and TypeClassDescriptionstatic final classPredefinedfunctionsto transformJavaAccess.static final classPredefinedpredicatestargetingJavaAccess.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:
getOwnerin interfaceHasOwner<TARGET extends AccessTarget>- Returns:
- The "owner" of this object, compare
HasOwner
-
getSourceCodeLocation
- Specified by:
getSourceCodeLocationin interfaceHasSourceCodeLocation- Returns:
- The
SourceCodeLocationof this object, i.e. how to locate the respective object within the set of source files.
-
isDeclaredInLambda
-
toString
-
getDescription
- Specified by:
getDescriptionin interfaceHasDescription
-
descriptionVerb
-
getContainingTryBlocks
- Returns:
- All try-catch-blocks where this
JavaAccessis contained within the try-part the try-catch-block
-