Describes the location of a class.
Type Params | Return Type | Name and description |
---|---|---|
|
File |
getFile() If the class is located on the filesystem or in a JAR this will be the location. |
|
URL |
getRuntime() If the class is located in a runtime module |
If the class is located on the filesystem or in a JAR this will be the location.
null
if class is in a runtime module. If the class is located in a runtime module
This method always returns null
on JDK7 or JDK8.
null
is class is not in a runtime module.