@Test public void testGetNotExcapedValue() { StringValue instance = new StringValue("'*''*'"); String expResult = "*'*"; String result = instance.getNotExcapedValue(); assertEquals(expResult, result); }
public String getNotExcapedValue() { StringBuilder buffer = new StringBuilder(value); int index = 0; int deletesNum = 0; while ((index = value.indexOf("''", index)) != -1) { buffer.deleteCharAt(index - deletesNum); index += 2; deletesNum++; } return buffer.toString(); }
StringValue implements Expression { public String getNotExcapedValue() { StringBuilder buffer = new StringBuilder(value); int index = 0; int deletesNum = 0; while ((index = value.indexOf("''", index)) != -1) { buffer.deleteCharAt(index - deletesNum); index += 2; deletesNum++; } return buffer.toString(); } }
StringValue implements Expression { public String getNotExcapedValue() { StringBuilder buffer = new StringBuilder(value); int index = 0; int deletesNum = 0; while ((index = value.indexOf("''", index)) != -1) { buffer.deleteCharAt(index - deletesNum); index += 2; deletesNum++; } return buffer.toString(); } StringValue(String escapedValue); }
StringValue implements Expression { public String getNotExcapedValue() { StringBuilder buffer = new StringBuilder(value); int index = 0; int deletesNum = 0; while ((index = value.indexOf("''", index)) != -1) { buffer.deleteCharAt(index - deletesNum); index += 2; deletesNum++; } return buffer.toString(); } StringValue(String escapedValue); String getValue(); String getNotExcapedValue(); void setValue(String string); @Override void accept(ExpressionVisitor expressionVisitor); @Override String toString(); }
StringValue implements Expression { public String getNotExcapedValue() { StringBuilder buffer = new StringBuilder(value); int index = 0; int deletesNum = 0; while ((index = value.indexOf("''", index)) != -1) { buffer.deleteCharAt(index - deletesNum); index += 2; deletesNum++; } return buffer.toString(); } StringValue(String escapedValue); String getValue(); String getNotExcapedValue(); void setValue(String string); @Override void accept(ExpressionVisitor expressionVisitor); @Override String toString();  }