public class Modifiers extends Object
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
.Modifier and Type | Class and Description |
---|---|
static class |
Modifiers.Reaction
Encodes how the code will react to a specific input condition.
|
Modifier and Type | Field and Description |
---|---|
Modifiers.Reaction |
beatNotBeaten
When an event appears few lines after a time line's beat column,
but no event is exactly on this column, --- defaults to
Modifiers.Reaction.reject . |
Modifiers.Reaction |
beatNotBeaten_narrow
When an event appears exactly one column after a time line beat column,
but no event is exactly on this column, --- defaults to
Modifiers.Reaction.reject . |
Modifiers.Reaction |
closingParenthesisBeyondRightTp
When the closing parenthesis is found right of the
right-most column in the ruling time-line, ---
defaults to
Modifiers.Reaction.warn . |
boolean |
cutParamTextByEventColumns
Whether to ignore the "continguous" rule and
cut parameter text at the event columns, defaults to
false , ---
NOT YET USED
and not yet clear how it can interact with double quotes and macro calls |
Modifiers.Reaction |
emptyParameterLine
When a parameter name is followed by a blank input line
defaults to
Modifiers.Reaction.warn . |
Modifiers.Reaction |
eventOnRightmostTp
The possibility to write an event under the very last Tp of an accolade
is only necessary when the Tps are STRICTLY increasing.
|
int |
formatWidth
Line width for formatted print outs.
|
boolean |
multiLineTpAllowed
Whether a time point indication (top time point, text based, or a subdivision)
may span more than one(>1) source line.
|
Modifiers.Reaction |
nondetParameterValue
When more than one parse tree is found for a parameter value,
defaults to
Modifiers.Reaction.reject . |
String |
quoteLeft
Left quotation mark when printing character data, e.g.
|
String |
quoteRight
Right quotation mark when printing character data, e.g.
|
Modifiers.Reaction |
repeatedParameterNames
When a particular parameter name appears more than once in the same voice,
defaults to
Modifiers.Reaction.warn . |
String |
tpCombinerString
The string to insert between the contents, when a time point
(either top or subdivision) spans more than one(>1) source line.
|
List<String> |
tpDividers
List of top-leve sub-division signs, which can appear between two
"alpha-numeric" top-level time point designators.
|
boolean |
verbose
Whether diagnosis information shall be more verbose.
|
boolean |
veryVerbose
Whether execution shall be verbose, for didactical purposes, also when
everything runs fine.
|
Constructor and Description |
---|
Modifiers() |
Modifier and Type | Method and Description |
---|---|
String |
quoteText(String t)
Frame the input text by
quoteLeft and quoteRight . |
public int formatWidth
public String quoteLeft
public String quoteRight
public boolean verbose
public boolean veryVerbose
public List<String> tpDividers
public boolean multiLineTpAllowed
public String tpCombinerString
public Modifiers.Reaction beatNotBeaten
Modifiers.Reaction.reject
.public Modifiers.Reaction beatNotBeaten_narrow
Modifiers.Reaction.reject
.public Modifiers.Reaction closingParenthesisBeyondRightTp
Modifiers.Reaction.warn
.public Modifiers.Reaction repeatedParameterNames
Modifiers.Reaction.warn
.public Modifiers.Reaction emptyParameterLine
Modifiers.Reaction.warn
.public Modifiers.Reaction eventOnRightmostTp
(Tp*Vox)->>Event
is no longer guaranteed.
Modifiers.Reaction.warn
.public boolean cutParamTextByEventColumns
false
, ---
NOT YET USED
and not yet clear how it can interact with double quotes and macro callspublic Modifiers.Reaction nondetParameterValue
Modifiers.Reaction.reject
.