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:
JavaCall
,JavaFieldAccess
public abstract class JavaAccess<TARGET extends AccessTarget> extends java.lang.Object implements HasName, HasDescription, HasOwner<JavaCodeUnit>, HasSourceCodeLocation
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JavaAccess.Functions
static class
JavaAccess.Predicates
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasName
HasName.AndFullName
-
Method Summary
Modifier and Type Method Description protected abstract java.lang.String
descriptionVerb()
boolean
equals(java.lang.Object obj)
java.lang.String
getDescription()
int
getLineNumber()
java.lang.String
getName()
JavaCodeUnit
getOrigin()
JavaClass
getOriginOwner()
JavaCodeUnit
getOwner()
SourceCodeLocation
getSourceCodeLocation()
TARGET
getTarget()
JavaClass
getTargetOwner()
int
hashCode()
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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.
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getDescription
- Specified by:
getDescription
in interfaceHasDescription
-
descriptionVerb
protected abstract java.lang.String descriptionVerb()
-