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

com.github.javaparser.printer.configuration.PrinterConfiguration Maven / Gradle / Ivy

package com.github.javaparser.printer.configuration;

import java.util.Optional;
import java.util.Set;

/**
 * This interface defines the API for printer configuration.
 * An option can be added or removed from the configuration. An indentation can also be added to it.
 */
public interface PrinterConfiguration {

    /*
     * add or update an option
     */
    PrinterConfiguration addOption(ConfigurationOption option);
    
    /*
     * Remove an option
     */
    PrinterConfiguration removeOption(ConfigurationOption option);

    /*
     * True if an option is activated
     */
    boolean isActivated(ConfigurationOption option);

    /*
     * returns the specified option
     */
    Optional get(ConfigurationOption option);

    /*
     * returns all activated options
     */
    Set get();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy