public class Parameters extends StringParameters implements ISimplifierRulesParameters
bufferpathSIMPLIFIERRULES, SIMPLIFIERRULES_DISPLAY_NAME, SIMPLIFIERRULES_SHORT_DESC| Constructor and Description |
|---|
Parameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromString(String data)
Reset this parameters object to its default values and then load
additional parameters from the provided data.
|
InlineCodeFinder |
getCodeFinder() |
String |
getCodeFinderData() |
boolean |
getExtractBodyPages() |
boolean |
getExtractHardReturnsAsText() |
boolean |
getExtractHiddenPages() |
boolean |
getExtractIndexMarkers() |
boolean |
getExtractLinks() |
boolean |
getExtractMasterPages() |
boolean |
getExtractPgfNumFormatsInline() |
boolean |
getExtractReferenceFormats() |
boolean |
getExtractReferencePages() |
boolean |
getExtractVariables() |
String |
getSimplifierRules()
Get the code simplifier rules as defined by
SimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj). |
boolean |
getUseCodeFinder() |
void |
reset()
Reset this parameters object to its default values.
|
void |
setCodeFinderData(String data) |
void |
setExtractBodyPages(boolean extractBodyPages) |
void |
setExtractHardReturnsAsText(boolean extractHardReturnsAsText) |
void |
setExtractHiddenPages(boolean extractHiddenPages) |
void |
setExtractIndexMarkers(boolean extractIndexMarkers) |
void |
setExtractLinks(boolean extractLinks) |
void |
setExtractMasterPages(boolean extractMasterPages) |
void |
setExtractPgfNumFormatsInline(boolean extractPgfNumFormatsInline) |
void |
setExtractReferenceFormats(boolean extractReferenceFormats) |
void |
setExtractReferencePages(boolean extractReferencePages) |
void |
setExtractVariables(boolean extractVariables) |
void |
setSimplifierRules(String rules)
Set the simplifier rules.
|
void |
setUseCodeFinder(boolean useCodeFinder) |
String |
toString()
Serialize this parameters object to a string.
|
void |
validateSimplifierRules()
Validate the current code simplifier rules.
|
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setStringgetParametersDescription, getPath, load, load, save, setPathpublic boolean getUseCodeFinder()
public void setUseCodeFinder(boolean useCodeFinder)
public InlineCodeFinder getCodeFinder()
public String getCodeFinderData()
public void setCodeFinderData(String data)
public boolean getExtractReferencePages()
public void setExtractReferencePages(boolean extractReferencePages)
public boolean getExtractMasterPages()
public void setExtractMasterPages(boolean extractMasterPages)
public boolean getExtractHiddenPages()
public void setExtractHiddenPages(boolean extractHiddenPages)
public boolean getExtractBodyPages()
public void setExtractBodyPages(boolean extractBodyPages)
public boolean getExtractVariables()
public void setExtractVariables(boolean extractVariables)
public boolean getExtractIndexMarkers()
public void setExtractIndexMarkers(boolean extractIndexMarkers)
public boolean getExtractLinks()
public void setExtractLinks(boolean extractLinks)
public boolean getExtractPgfNumFormatsInline()
public void setExtractPgfNumFormatsInline(boolean extractPgfNumFormatsInline)
public boolean getExtractReferenceFormats()
public void setExtractReferenceFormats(boolean extractReferenceFormats)
public boolean getExtractHardReturnsAsText()
public void setExtractHardReturnsAsText(boolean extractHardReturnsAsText)
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 void fromString(String data)
StringParameters
Subclasses should not normally need to override this method unless
they are maintaining complex values (eg, InlineCodeFinder)
that require extra initialization as part of their parameter state.
fromString in interface IParametersfromString in class StringParametersdata - the string holding the parameters. It must be formatted as
the string generated by toString(). Line-breaks must be normalized to '\n'.
It can also be null or empty, in such case the parameters are left with
their current values. Use reset() to reset the parameters to their defaults.public String toString()
StringParameters
Subclasses should not normally need to override this method unless
they are maintaining complex values (eg, InlineCodeFinder)
that require extra serialization as part of their parameter state.
toString in interface IParameterstoString in class StringParametersCopyright © 2022. All rights reserved.