Class CleanUpOptionsCore
java.lang.Object
org.eclipse.jdt.core.manipulation.CleanUpOptionsCore
- Direct Known Subclasses:
CleanUpOptions
Allows to set and retrieve clean up settings for given options keys.
- Since:
- 1.12 This class is not intended to be subclassed by clients.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.CleanUpOptionsCore(Map<String, String> options) Creates a new CleanUpOptions instance with the given options. -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()Returns an unmodifiable set of all known keys.Returns the value for the given key.booleanTells whether the option with the givenkeyis enabled.voidSets the option for the given key to the given value.
-
Field Details
-
TRUE
True value- See Also:
-
FALSE
False value- See Also:
-
-
Constructor Details
-
CleanUpOptionsCore
Creates a new CleanUpOptions instance with the given options.- Parameters:
options- map that maps clean ups keys (String) to a non-nullstring value
-
CleanUpOptionsCore
public CleanUpOptionsCore()Creates a new instance.
-
-
Method Details
-
isEnabled
Tells whether the option with the givenkeyis enabled.- Parameters:
key- the name of the option- Returns:
trueif enabled,falseif not enabled or unknown key- Throws:
IllegalArgumentException- if the key isnull- See Also:
-
CleanUpConstants
-
getValue
Returns the value for the given key.- Parameters:
key- the key of the value- Returns:
- the value associated with the key
- Throws:
IllegalArgumentException- if the key is null or unknown
-
setOption
Sets the option for the given key to the given value.- Parameters:
key- the name of the option to setvalue- the value of the option- Throws:
IllegalArgumentException- if the key isnull- See Also:
-
getKeys
Returns an unmodifiable set of all known keys.- Returns:
- an unmodifiable set of all keys
-