public class Parameters extends StringParameters implements IEditorDescriptionProvider, ISimplifierRulesParameters
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOWEMPTYOUTPUTTARGET |
bufferpathSIMPLIFIERRULES, SIMPLIFIERRULES_DISPLAY_NAME, SIMPLIFIERRULES_SHORT_DESC| Constructor and Description |
|---|
Parameters() |
| Modifier and Type | Method and Description |
|---|---|
EditorDescription |
createEditorDescription(ParametersDescription paramDesc) |
boolean |
getAllowEmptyOutputTarget() |
ParametersDescription |
getParametersDescription()
Gets the description of the parameters.
|
String |
getSimplifierRules()
Get the code simplifier rules as defined by
SimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj). |
void |
reset()
Reset this parameters object to its default values.
|
void |
setAllowEmptyOutputTarget(boolean allowEmptyOutputTarget) |
void |
setSimplifierRules(String rules)
Set the simplifier rules.
|
void |
validateSimplifierRules()
Validate the current code simplifier rules.
|
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toStringpublic static final String ALLOWEMPTYOUTPUTTARGET
public boolean getAllowEmptyOutputTarget()
public void setAllowEmptyOutputTarget(boolean allowEmptyOutputTarget)
public String getSimplifierRules()
ISimplifierRulesParametersSimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj).getSimplifierRules in interface ISimplifierRulesParameterspublic void setSimplifierRules(String rules)
ISimplifierRulesParameterssetSimplifierRules in interface ISimplifierRulesParametersrules - new simplifier rulespublic void validateSimplifierRules()
throws ParseException
ISimplifierRulesParametersvalidateSimplifierRules in interface ISimplifierRulesParametersParseException - if the rule cannot be parsedpublic void reset()
StringParameters
Subclasses should override this method to set any initial
values and instantiate any objects that require allocation. It
is recommended that subclasses also call super.reset()
in the override to ensure that the buffer is empty.
reset in interface IParametersreset in class StringParameterspublic ParametersDescription getParametersDescription()
IParametersgetParametersDescription in interface IParametersgetParametersDescription in class BaseParameterspublic EditorDescription createEditorDescription(ParametersDescription paramDesc)
createEditorDescription in interface IEditorDescriptionProviderCopyright © 2022. All rights reserved.