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() |
String |
getPath() |
Pattern |
getPathRegex() |
String |
getPathRelativeToThis(String path)
Returns the path relative to this location.
|
String |
getPrefix() |
String |
getRootPath() |
int |
hashCode() |
boolean |
isClassPath()
Checks whether this denotes a location on the classpath.
|
boolean |
isFileSystem()
Checks whether this denotes a location on the filesystem.
|
boolean |
isParentOf(Location other)
Checks whether this location is a parent of this other location.
|
boolean |
matchesPath(String path) |
String |
toString() |
public Location(String descriptor)
descriptor - The location descriptor.public boolean matchesPath(String path)
public String getPathRelativeToThis(String path)
public boolean isClassPath()
true if it does, false if it doesn't.public boolean isFileSystem()
true if it does, false if it doesn't.public boolean isParentOf(Location other)
other - The other location.true if it is, false if it isn't.public String getPrefix()
public String getRootPath()
public String getPath()
public Pattern getPathRegex()
public String getDescriptor()
public int compareTo(Location o)
compareTo 在接口中 Comparable<Location>Copyright © 2022. All rights reserved.