@Override public AstLiteralTextValue visitLiteralText(LiteralTextContext ctx) { String text = ctx.literal.getText(); String textWithoutQuotes = text.substring(1, text.length() - 1); String escapedText = escapeString(textWithoutQuotes); AstLiteralTextValue value = new AstLiteralTextValue(escapedText); value.setRegionInfo(asSequentialRegion(childInfos, ctx)); return value; } }
public ScriptNested<R> setPropertyValue(String propertyValue) { node.setPropertyValue(new AstLiteralTextValue(propertyValue)); return this; }
public StreamNested<R> addValue(String value) { node.addValue(new AstLiteralTextValue(value)); return this; }
public StreamNested<R> setValue(String name, String value) { node.setValue(name, new AstLiteralTextValue(value)); return this; }
public AstWriteOptionNodeBuilder setOptionValue(String optionValue) { node.setOptionValue(new AstLiteralTextValue(optionValue)); return this; }
public StreamNested<R> setOptionValue(String optionValue) { node.setOptionValue(new AstLiteralTextValue(optionValue)); return this; }
public AstWriteConfigNodeBuilder setValue(String name, String value) { node.setValue(name, new AstLiteralTextValue(value)); return this; }
public StreamNested<R> setOptionValue(String optionValue) { node.setOptionValue(new AstLiteralTextValue(optionValue)); return this; }
public AstReadOptionNodeBuilder setOptionValue(String optionValue) { node.setOptionValue(new AstLiteralTextValue(optionValue)); return this; }
public AstWriteConfigNodeBuilder addValue(String value) { node.addValue(new AstLiteralTextValue(value)); return this; }
public AstWriteNodeBuilder addExactText(String exactText) { node.addValue(new AstLiteralTextValue(exactText)); return this; }
public StreamNested<R> addExactText(String exactText) { node.addValue(new AstLiteralTextValue(exactText)); return this; }
public AstPropertyNodeBuilder setPropertyValue(String propertyValue) { node.setPropertyValue(new AstLiteralTextValue(propertyValue)); return this; }