ASTLiteral extends AbstractJavaTypeNode { @InternalApi @Deprecated public void setStringLiteral() { this.isString = true; } @InternalApi @Deprecated  ASTLiteral(int id); @InternalApi @Deprecated  ASTLiteral(JavaParser p, int id); @Override Object jjtAccept(JavaParserVisitor visitor, Object data); @InternalApi @Deprecated void setIntLiteral(); boolean isIntLiteral(); boolean isLongLiteral(); @InternalApi @Deprecated void setFloatLiteral(); boolean isFloatLiteral(); boolean isDoubleLiteral(); int getValueAsInt(); long getValueAsLong(); float getValueAsFloat(); double getValueAsDouble(); @InternalApi @Deprecated void setCharLiteral(); boolean isCharLiteral(); @InternalApi @Deprecated void setStringLiteral(); boolean isStringLiteral(); String getEscapedStringLiteral(); boolean isSingleCharacterStringLiteral(); boolean isTextBlock(); String getTextBlockContent();  }
@Test public void testStringUnicodeEscapesNotEscaped() { ASTLiteral literal = new ASTLiteral(1); literal.setStringLiteral(); literal.setImage("abcüabc"); literal.testingOnlySetBeginColumn(1); literal.testingOnlySetEndColumn(7); assertEquals("abcüabc", literal.getEscapedStringLiteral()); assertEquals("abcüabc", literal.getImage()); }