class DoubleLiteralExpr extends LiteralStringValueExpr {

    public DoubleLiteralExpr() {
        this(null, "0");
    }

    @AllFieldsConstructor
    public DoubleLiteralExpr(final String value) {
        this(null, value);
    }

    /**
     * This constructor is used by the parser and is considered private.
     */
    @Generated("com.github.javaparser.generator.core.node.MainConstructorGenerator")
    public DoubleLiteralExpr(TokenRange tokenRange, String value) {
        super(tokenRange, value);
        customInitialization();
    }

    public DoubleLiteralExpr(final double value) {
        this(null, String.valueOf(value));
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.AcceptGenerator")
    public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) {
        return v.visit(this, arg);
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.AcceptGenerator")
    public <A> void accept(final VoidVisitor<A> v, final A arg) {
        v.visit(this, arg);
    }

    /**
     * @return the literal value as a double
     */
    public double asDouble() {<FILL_FUNCTION_BODY>}

    public DoubleLiteralExpr setDouble(double value) {
        this.value = String.valueOf(value);
        return this;
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.CloneGenerator")
    public DoubleLiteralExpr clone() {
        return (DoubleLiteralExpr) accept(new CloneVisitor(), null);
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.GetMetaModelGenerator")
    public DoubleLiteralExprMetaModel getMetaModel() {
        return JavaParserMetaModel.doubleLiteralExprMetaModel;
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
    public boolean isDoubleLiteralExpr() {
        return true;
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
    public DoubleLiteralExpr asDoubleLiteralExpr() {
        return this;
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
    public void ifDoubleLiteralExpr(Consumer<DoubleLiteralExpr> action) {
        action.accept(this);
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
    public Optional<DoubleLiteralExpr> toDoubleLiteralExpr() {
        return Optional.of(this);
    }
}

        // Underscores are allowed in number literals for readability reasons but cause a NumberFormatException if
        // passed along to Double#parseDouble. Hence, we apply a simple filter to remove all underscores.
        // See https://github.com/javaparser/javaparser/issues/1980 for more information.
        String noUnderscoreValue = value.replaceAll("_", "");
        return Double.parseDouble(noUnderscoreValue);
    
<methods>public void <init>(java.lang.String) ,public void <init>(com.github.javaparser.TokenRange, java.lang.String) ,public com.github.javaparser.ast.expr.LiteralStringValueExpr asLiteralStringValueExpr() ,public com.github.javaparser.ast.expr.LiteralStringValueExpr clone() ,public com.github.javaparser.metamodel.LiteralStringValueExprMetaModel getMetaModel() ,public java.lang.String getValue() ,public void ifLiteralStringValueExpr(Consumer<com.github.javaparser.ast.expr.LiteralStringValueExpr>) ,public boolean isLiteralStringValueExpr() ,public com.github.javaparser.ast.expr.LiteralStringValueExpr setValue(java.lang.String) ,public Optional<com.github.javaparser.ast.expr.LiteralStringValueExpr> toLiteralStringValueExpr() <variables>protected java.lang.String value