text_lint.linter.states.StateFactory
- class text_lint.linter.states.StateFactory(linter: Linter)[Quellcode]
Bases:
objectEncapsulate a linter instance as a state object.
- __init__(linter: Linter) None[Quellcode]
Initialize StateFactory instances.
- Parameter:
linter (Linter) – The linter instance being encapsulated.
- assertion() AssertionState[Quellcode]
Generate state for assertion operations.
- Rückgabe:
The generated state object.
- Rückgabetyp:
- lookup() LookupState[Quellcode]
Generate state for lookup operations.
- Rückgabe:
The generated state object.
- Rückgabetyp:
- validator() ValidatorState[Quellcode]
Generate state for validator operations.
- Rückgabe:
The generated state object.
- Rückgabetyp: