Package eu.bandm.tscore.base
Class Modifiers
java.lang.Object
eu.bandm.tscore.base.Modifiers
An instance of this class is used to parametrize the raw parsing process
and the subsequent first transformations, as performed by
RawParser
and the methods in Util
.
Most iportant are the specifications of the
reactions to certain critical conditions in the input data.
The possible values for these fields are defined by Modifiers.Reaction
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Encodes how the code will react to a specific input condition. -
Field Summary
Modifier and TypeFieldDescriptionWhen an event appears few lines after a time line's beat column, but no event is exactly on this column, --- defaults toModifiers.Reaction.reject
.When an event appears exactly one column after a time line beat column, but no event is exactly on this column, --- defaults toModifiers.Reaction.reject
.When the closing parenthesis is found right of the right-most column in the ruling time-line, --- defaults toModifiers.Reaction.warn
.boolean
Whether to ignore the "continguous" rule and cut parameter text at the event columns, defaults tofalse
, --- NOT YET USED and not yet clear how it can interact with double quotes and macro callsWhen a parameter name is followed by a blank input line defaults toModifiers.Reaction.warn
.The possibility to write an event under the very last Tp of an accolade is only necessary when the Tps are STRICTLY increasing.int
Line width for formatted print outs.boolean
Whether a time point indication (top time point, text based, or a subdivision) may span more than one(>1) source line.When more than one parse tree is found for a parameter value, defaults toModifiers.Reaction.reject
.Left quotation mark when printing character data, e.g.Right quotation mark when printing character data, e.g.When a particular parameter name appears more than once in the same voice, defaults toModifiers.Reaction.warn
.The string to insert between the contents, when a time point (either top or subdivision) spans more than one(>1) source line.List of top-leve sub-division signs, which can appear between two "alpha-numeric" top-level time point designators.boolean
Whether diagnosis information shall be more verbose.boolean
Whether execution shall be verbose, for didactical purposes, also when everything runs fine. -
Constructor Summary
-
Method Summary
-
Field Details
-
formatWidth
public int formatWidthLine width for formatted print outs. -
quoteLeft
Left quotation mark when printing character data, e.g. parser input. -
quoteRight
Right quotation mark when printing character data, e.g. parser input. -
verbose
public boolean verboseWhether diagnosis information shall be more verbose. -
veryVerbose
public boolean veryVerboseWhether execution shall be verbose, for didactical purposes, also when everything runs fine. -
tpDividers
List of top-leve sub-division signs, which can appear between two "alpha-numeric" top-level time point designators. -
multiLineTpAllowed
public boolean multiLineTpAllowedWhether a time point indication (top time point, text based, or a subdivision) may span more than one(>1) source line. -
tpCombinerString
The string to insert between the contents, when a time point (either top or subdivision) spans more than one(>1) source line. -
beatNotBeaten
When an event appears few lines after a time line's beat column, but no event is exactly on this column, --- defaults toModifiers.Reaction.reject
. -
beatNotBeaten_narrow
When an event appears exactly one column after a time line beat column, but no event is exactly on this column, --- defaults toModifiers.Reaction.reject
. -
closingParenthesisBeyondRightTp
When the closing parenthesis is found right of the right-most column in the ruling time-line, --- defaults toModifiers.Reaction.warn
. -
repeatedParameterNames
When a particular parameter name appears more than once in the same voice, defaults toModifiers.Reaction.warn
. -
emptyParameterLine
When a parameter name is followed by a blank input line defaults toModifiers.Reaction.warn
. -
eventOnRightmostTp
The possibility to write an event under the very last Tp of an accolade is only necessary when the Tps are STRICTLY increasing. (Then the last Tp cannot be duplicated at the beginning of the next line.)
Otherwise, this option is not only unnecessary, but also makes that the injectivitiy(Tp*Vox)->>Event
is no longer guaranteed.
Defaults toModifiers.Reaction.warn
. -
cutParamTextByEventColumns
public boolean cutParamTextByEventColumnsWhether to ignore the "continguous" rule and cut parameter text at the event columns, defaults tofalse
, --- NOT YET USED and not yet clear how it can interact with double quotes and macro calls -
nondetParameterValue
When more than one parse tree is found for a parameter value, defaults toModifiers.Reaction.reject
.
-
-
Constructor Details
-
Modifiers
public Modifiers()
-
-
Method Details
-
quoteText
Frame the input text byquoteLeft
andquoteRight
.
-