text_lint.linter.states.StateFactory

class text_lint.linter.states.StateFactory(linter: Linter)[Quellcode]

Bases: object

Encapsulate 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:

AssertionState

lookup() LookupState[Quellcode]

Generate state for lookup operations.

Rückgabe:

The generated state object.

Rückgabetyp:

LookupState

validator() ValidatorState[Quellcode]

Generate state for validator operations.

Rückgabe:

The generated state object.

Rückgabetyp:

ValidatorState