public class Parameters extends Parameters
| Modifier and Type | Field and Description |
|---|---|
static int |
DEF_GROUP |
static int |
DEF_OPTIONS |
static String |
DEF_RULE |
static String |
DEF_SAMPLE |
int |
regexOptions
Java regex options.
|
String |
rule
Java regex rule used to extract lines of text.
|
String |
sample
Sample text for the rule.
|
int |
sourceGroup
Java regex capturing group denoting text to be extracted.
|
codeFinderRules, preserveWS, subfilter, trimLeading, trimTrailing, unescapeSource, useCodeFinder, wrapModebufferpathSIMPLIFIERRULES, SIMPLIFIERRULES_DISPLAY_NAME, SIMPLIFIERRULES_SHORT_DESC| Constructor and Description |
|---|
Parameters() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
load(ParametersString buffer)
Load from buffer.
|
void |
reset()
Reset this parameters object to its default values.
|
protected void |
save(ParametersString buffer)
Save to buffer.
|
fromString, getData, getSimplifierRules, loadFromResource, loadGroup, loadGroup, saveGroup, saveGroup, saveToResource, setSimplifierRules, toString, validateSimplifierRulesfromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setStringgetParametersDescription, getPath, load, load, save, setPathpublic static final String DEF_RULE
public static final int DEF_GROUP
public static final String DEF_SAMPLE
public static final int DEF_OPTIONS
public String rule
Default: "(^(?=.+))(.*?)$".
public int sourceGroup
Default: 2.
public int regexOptions
Default: Pattern.MULTILINE.
public String sample
protected void load(ParametersString buffer)
AbstractGroupParametersload in class Parameterspublic 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 Parametersprotected void save(ParametersString buffer)
AbstractGroupParameterssave in class ParametersCopyright © 2022. All rights reserved.