ASTLiteral extends AbstractJavaTypeNode { public boolean isLongLiteral() { String image = getImage(); if (isInt && image != null && image.length() > 0) { if (image.endsWith("l") || image.endsWith("L")) { return true; } } return false; } @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 testIsIntLongLiteral() { List<ASTLiteral> literals = java.getNodes(ASTLiteral.class, TEST4); assertTrue(literals.get(0).isLongLiteral()); }