Package com.tngtech.archunit.core.domain
Class SourceCodeLocation
java.lang.Object
com.tngtech.archunit.core.domain.SourceCodeLocation
Location in the source code of an ArchUnit domain object.
Consider, e.g., a
A
Consider, e.g., a
JavaAccess
from com.myapp.MyClass
line number 28
to another class com.any.OtherClass
. Then the SourceCodeLocation
would be
com.myapp.MyClass.java:28
A
SourceCodeLocation
will always only be as precise as possible from the point of Java bytecode.
A field of a class, e.g., com.myapp.MyClass
would always give
com.myapp.MyClass.java:0
since there is no way to precisely determine the line number of a JavaField
from bytecode.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
hashCode()
static SourceCodeLocation
static SourceCodeLocation
toString()
-
Method Details
-
of
-
of
-
getSourceClass
-
getSourceFileName
-
getLineNumber
-
hashCode
public int hashCode() -
equals
-
toString
-