All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cloudevents.sql.impl.parser.ParserBuilder Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package io.cloudevents.sql.impl.parser;

import io.cloudevents.sql.Parser;

public class ParserBuilder {

    private boolean constantFolding;

    public ParserBuilder() {
        this.constantFolding = true;
    }

    /**
     * Disable constant folding when parsing.
     *
     * @return this
     */
    public ParserBuilder disableConstantFolding() {
        this.constantFolding = false;
        return this;
    }

    /**
     * @return the new {@link Parser}
     */
    public Parser build() {
        return new ParserImpl(this.constantFolding);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy