public interface Customizable
Option
s.
The primary customizable entities are parsing Environment
s and
EvaluationEnvironment
s.Modifier and Type | Method and Description |
---|---|
Map<Option<?>,Object> |
clearOptions()
Clears all options.
|
Map<Option<?>,Object> |
getOptions()
Obtains a copy of my map of options.
|
<T> T |
getValue(Option<T> option)
Obtains the value of the specified option's setting in the my
options map.
|
boolean |
isEnabled(Option<Boolean> option)
Queries whether the specified boolean-valued option is enabled.
|
<T> void |
putOptions(Map<? extends Option<T>,? extends T> options)
Adds options to apply to my behaviour.
|
<T> T |
removeOption(Option<T> option)
Removes the specified option.
|
<T> Map<Option<T>,T> |
removeOptions(Collection<Option<T>> options)
Removes the specified options.
|
<T> void |
setOption(Option<T> option,
T value)
Add an option to apply to my behaviour.
|
Map<Option<?>,Object> getOptions()
<T> T getValue(Option<T> option)
option
- the option to queryboolean isEnabled(Option<Boolean> option)
option
- an option<T> void setOption(Option<T> option, T value)
option
- the optionvalue
- the option's value<T> void putOptions(Map<? extends Option<T>,? extends T> options)
options
- the options<T> T removeOption(Option<T> option)
option
- the option to remove<T> Map<Option<T>,T> removeOptions(Collection<Option<T>> options)
options
- the options to removeCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.