Package org.sonar.sslr.toolkit
Interface ConfigurationModel
-
- All Known Implementing Classes:
AbstractConfigurationModel
public interface ConfigurationModelThis interface is used to pass configuration properties to the Toolkit. The parser and tokenizer may depend on the configuration. For example, a parser could depend on a charset configuration property. End-users should extendAbstractConfigurationModelinstead of implementing this interface.- Since:
- 1.17
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CharsetgetCharset()Gets the character set reflecting the current configuration state.ParsergetParser()Gets a parser instance reflecting the current configuration state.List<ConfigurationProperty>getProperties()Gets the properties to be shown, in the same order, in the Configuration tab.List<org.sonar.colorizer.Tokenizer>getTokenizers()Gets tokenizers reflecting the current configuration state.voidsetUpdatedFlag()This method is called each time a configuration property's value is changed.
-
-
-
Method Detail
-
getProperties
List<ConfigurationProperty> getProperties()
Gets the properties to be shown, in the same order, in the Configuration tab.- Returns:
- The list of configuration properties
-
setUpdatedFlag
void setUpdatedFlag()
This method is called each time a configuration property's value is changed.
-
getCharset
Charset getCharset()
Gets the character set reflecting the current configuration state.- Returns:
- Charset for the current configuration
- Since:
- 1.18
-
getParser
Parser getParser()
Gets a parser instance reflecting the current configuration state.- Returns:
- A parser for the current configuration
-
getTokenizers
List<org.sonar.colorizer.Tokenizer> getTokenizers()
Gets tokenizers reflecting the current configuration state.- Returns:
- Tokenizers for the current configuration
-
-