ASTLiteral extends AbstractJavaTypeNode { public boolean isStringLiteral() { return isString; } @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 testIsStringLiteral() { List<ASTLiteral> literals = java.getNodes(ASTLiteral.class, TEST1); assertTrue(literals.get(0).isStringLiteral()); }
@Test public void testIsNotStringLiteral() { List<ASTLiteral> literals = java.getNodes(ASTLiteral.class, TEST2); assertFalse(literals.get(0).isStringLiteral()); }