|
||||||||||
| 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 java.util.regex.Pattern |
matches
pattern for a transformation |
protected java.lang.String |
replacement
what the pattern should be replaced with |
| Constructor Summary | |
|---|---|
Files.PathTransformation(java.lang.String find,
java.lang.String replace)
create a new transformation with the pattern and replacement |
|
| Method Summary | |
|---|---|
java.lang.String |
transform(java.lang.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 java.util.regex.Pattern matches
protected java.lang.String replacement
| Constructor Detail |
|---|
public Files.PathTransformation(java.lang.String find,
java.lang.String replace)
| Method Detail |
|---|
public java.lang.String transform(java.lang.String path)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||