![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
A builder for an error inserter. More...
Public Member Functions | |
| Builder () | |
| Initializes a builder for error inserters. | |
| ErrorInserter | get (Random random) |
| Get the error inserter generated by this. | |
| Builder | insertable (String line) |
| Record that a line may be inserted in order to introduce an error. | |
| Builder | insertCondition (BiPredicate< String, String > insertCondition) |
| Record that for any lines X, Y, insertCondition(X, Y) is a necessary condition that a line may be inserted between X and Y. | |
| Builder | replacer (String phrase, String alternativePhrase) |
| Record that the resulting ErrorInserter may replace phrase with alternativePhrase. | |
A builder for an error inserter.
| org.lflang.tests.lsp.ErrorInserter.Builder.Builder | ( | ) |
Initializes a builder for error inserters.
| ErrorInserter org.lflang.tests.lsp.ErrorInserter.Builder.get | ( | Random | random | ) |
Get the error inserter generated by this.
| Builder org.lflang.tests.lsp.ErrorInserter.Builder.insertable | ( | String | line | ) |
Record that a line may be inserted in order to introduce an error.
| Builder org.lflang.tests.lsp.ErrorInserter.Builder.insertCondition | ( | BiPredicate< String, String > | insertCondition | ) |
Record that for any lines X, Y, insertCondition(X, Y) is a necessary condition that a line may be inserted between X and Y.
| Builder org.lflang.tests.lsp.ErrorInserter.Builder.replacer | ( | String | phrase, |
| String | alternativePhrase ) |
Record that the resulting ErrorInserter may replace phrase with alternativePhrase.
| phrase | A phrase in target language code. |
| alternativePhrase | A phrase that phrase may be replaced with in order to introduce an error. |