public final class Location extends Object implements Comparable<Location>
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
FILESYSTEM_PREFIX
The prefix for filesystem locations.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Location o) |
boolean |
equals(Object o) |
String |
getDescriptor()
Return the complete location descriptor.
|
String |
getPath()
Return the path part of the location.
|
String |
getPrefix()
Return the prefix denoting classpath of filesystem.
|
int |
hashCode() |
boolean |
isClassPath()
Return true if this denotes a classpath location.
|
boolean |
isFileSystem()
Return true if this denotes a filesystem location.
|
String |
toString() |
public Location(String descriptor)
descriptor - The location descriptor.public boolean isClassPath()
public boolean isFileSystem()
public String getPath()
public String getPrefix()
public String getDescriptor()
public int compareTo(Location o)
compareTo 在接口中 Comparable<Location>Copyright © 2019. All rights reserved.