source format in test
This commit is contained in:
parent
36bfe25796
commit
afec455270
1 changed files with 12 additions and 4 deletions
|
@ -713,25 +713,33 @@ public class TestInterpolator {
|
||||||
|
|
||||||
public String getForPrefixed(String captured) {
|
public String getForPrefixed(String captured) {
|
||||||
Value val = map.get(captured);
|
Value val = map.get(captured);
|
||||||
if (hasForAny(val)) return val.getForAny();
|
if (hasForAny(val)) {
|
||||||
|
return val.getForAny();
|
||||||
|
}
|
||||||
return val != null ? val.getForPrefixed() : null;
|
return val != null ? val.getForPrefixed() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getForBraceEnclosed(String captured) {
|
public String getForBraceEnclosed(String captured) {
|
||||||
Value val = map.get(captured);
|
Value val = map.get(captured);
|
||||||
if (hasForAny(val)) return val.getForAny();
|
if (hasForAny(val)) {
|
||||||
|
return val.getForAny();
|
||||||
|
}
|
||||||
return val != null ? val.getForBraceEnclosed() : null;
|
return val != null ? val.getForBraceEnclosed() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getForBracketEnclosed(String captured) {
|
public String getForBracketEnclosed(String captured) {
|
||||||
Value val = map.get(captured);
|
Value val = map.get(captured);
|
||||||
if (hasForAny(val)) return val.getForAny();
|
if (hasForAny(val)) {
|
||||||
|
return val.getForAny();
|
||||||
|
}
|
||||||
return val != null ? val.getForBracketEnclosed() : null;
|
return val != null ? val.getForBracketEnclosed() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getForPrefixedBracketEnclosed(String captured) {
|
public String getForPrefixedBracketEnclosed(String captured) {
|
||||||
Value val = map.get(captured);
|
Value val = map.get(captured);
|
||||||
if (hasForAny(val)) return val.getForAny();
|
if (hasForAny(val)) {
|
||||||
|
return val.getForAny();
|
||||||
|
}
|
||||||
return val != null ? val.getForPrefixedBracketEnclosed() : null;
|
return val != null ? val.getForPrefixedBracketEnclosed() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue