public interface CompilerOptions
Exposes Inverno compiler options.
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsOption(String name)Determines whether the specified options has been set.Returns the value of the specified option.booleanisDebug()Indicates whether the compiler displays debug information.booleanisOptionActivated(String name, boolean defaultActivation)Determines whether the specified option is activated.booleanIndicates 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
Determines whether the specified options has been set.
- Parameters:
name- an option name- Returns:
- true if the option has been set, false otherwise
-
getOption
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
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 namedefaultActivation- whether the option is activated by default- Returns:
- true if the option is activated, false otherwise
-