Interface CompilerOptions


public interface CompilerOptions

Exposes Inverno compiler options.

Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether the specified options has been set.
    Returns the value of the specified option.
    boolean
    Indicates whether the compiler displays debug information.
    boolean
    isOptionActivated(String name, boolean defaultActivation)
    Determines whether the specified option is activated.
    boolean
    Indicates whether the compiler is verbose.
  • Method Details

    • isVerbose

      boolean isVerbose()

      Indicates whether the compiler is verbose.

      Returns:
      true if the compiler is verbose, false otherwise
    • isDebug

      boolean isDebug()

      Indicates whether the compiler displays debug information.

      Returns:
      true if the compiler is in debug mode, false otherwise
    • containsOption

      boolean containsOption(String name)

      Determines whether the specified options has been set.

      Parameters:
      name - an option name
      Returns:
      true if the option has been set, false otherwise
    • getOption

      Optional<String> getOption(String name)

      Returns the value of the specified option.

      Parameters:
      name - an option name
      Returns:
      an optional returning the value or an empty optional if the options has not been set
    • isOptionActivated

      boolean isOptionActivated(String name, boolean defaultActivation)

      Determines whether the specified option is activated.

      An option can be a flag option (ie. with no value) in which case it is considered activated if it has been declared.

      Parameters:
      name - an option name
      defaultActivation - whether the option is activated by default
      Returns:
      true if the option is activated, false otherwise