Class Location
java.lang.Object
com.tngtech.archunit.core.importer.Location
Handles various forms of location from where classes can be imported in a consistent way. Any location
will be treated like a
Examples for locations could be
URI
, thus there will not be any platform dependent file separator problems.Examples for locations could be
file:///home/someuser/workspace/myproject/target/classes/myproject/Foo.class
jar:file:///home/someuser/.m2/repository/myproject/foolib.jar!/myproject/Foo.class
-
Method Details
-
asURI
-
contains
-
matches
-
isJar
-
isArchive
This is a generalization ofisJar()
. Before JDK 9, the only archives were Jar files, starting with JDK 9, we also have JRTs (the JDK modules).- Returns:
true
, if this location represents an archive, like a JAR or JRT,false
otherwise
-
hashCode
public int hashCode() -
equals
-
toString
-
of
-
of
-
of
-
of
-