inspection
Inspection visitors for examining instrument and transaction attributes.
Classes:
-
InspectionVisitor–Base class for inspection visitors. Owns the result dict and shared helpers.
-
InstrumentInspectionVisitor–Visitor for inspecting instrument attributes.
-
TransactionInspectionVisitor–Visitor for inspecting transaction details, including related position, instrument, and journal entries.
InspectionVisitor
InspectionVisitor()
Base class for inspection visitors. Owns the result dict and shared helpers.
Methods:
-
get_result–Return the result of the inspection.
get_result
get_result() -> dict[str, Any]
Return the result of the inspection.
InstrumentInspectionVisitor
InstrumentInspectionVisitor()
Bases: InspectionVisitor, Visitor
Visitor for inspecting instrument attributes.
Methods:
-
get_result–Return the result of the inspection.
-
visit_amortizing_fixed_rate_loan–Inspect an amortizing fixed rate loan.
-
visit_cash–Inspect cash.
-
visit_common_equity–Inspect common equity.
-
visit_covered_bond–Inspect a covered bond.
-
visit_credit_card–Inspect a credit card.
-
visit_deposit–Inspect deposit.
-
visit_fixed_rate_bond–Inspect a fixed rate bond.
-
visit_personal_loan–Inspect a personal loan.
-
visit_variable_rate_loan–Inspect a variable rate loan.
get_result
get_result() -> dict[str, Any]
Return the result of the inspection.
visit_amortizing_fixed_rate_loan
visit_amortizing_fixed_rate_loan(
instrument: AmortizingFixedRateLoan,
) -> None
Inspect an amortizing fixed rate loan.
visit_fixed_rate_bond
visit_fixed_rate_bond(instrument: FixedRateBond) -> None
Inspect a fixed rate bond.
visit_variable_rate_loan
visit_variable_rate_loan(
instrument: VariableRateLoan,
) -> None
Inspect a variable rate loan.
TransactionInspectionVisitor
Bases: InspectionVisitor
Visitor for inspecting transaction details, including related position, instrument, and journal entries.
Methods:
-
get_result–Return the result of the inspection.
-
visit_transaction–Inspect a transaction and its related objects.
get_result
get_result() -> dict[str, Any]
Return the result of the inspection.
visit_transaction
visit_transaction(transaction: Transaction) -> None
Inspect a transaction and its related objects.