|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.utility.Files.PathTransformation
protected static class Files.PathTransformation
a search regex and a replacement for path transformations
| Field Summary | |
|---|---|
protected Pattern |
matches
pattern for a transformation |
protected String |
replacement
what the pattern should be replaced with |
| Constructor Summary | |
|---|---|
Files.PathTransformation(String find,
String replace)
create a new transformation with the pattern and replacement |
|
| Method Summary | |
|---|---|
String |
transform(String path)
change a path if it matches this transformation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Pattern matches
protected String replacement
| Constructor Detail |
|---|
public Files.PathTransformation(String find,
String replace)
| Method Detail |
|---|
public String transform(String path)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||