diff options
Diffstat (limited to 'support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Directive.kt')
-rw-r--r-- | support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Directive.kt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Directive.kt b/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Directive.kt new file mode 100644 index 0000000000..33f8431744 --- /dev/null +++ b/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Directive.kt @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: BSD-3-Clause +package org.islandoftex.arara.ruleset + +/** + * Implements the directive model. + * + * @author Island of TeX + * @version 5.0 + * @since 4.0 + */ +data class Directive( + /** + * The directive identifier, it is resolved to the rule identifier + * later on. + */ + val identifier: String, + /** + * A map containing the parameters; they are validated later on in + * order to ensure they are valid. + */ + val parameters: Map<String, Any>, + /** + * A conditional containing the type and the expression to be evaluated + * later on. + */ + val conditional: Conditional, + /** + * A list contained all line numbers from the main file which built the + * current directive. + */ + val lineNumbers: List<Int> +) |