<!-- Generated by codeindex (detailed) at 2026-02-06T10:12:12.667571 -->

# extractors

## Overview

- **Files**: 3
- **Symbols**: 9

## Files

### __init__.py
_Framework-specific route extractors.

This package contains route extractors for different frameworks.
Each extractor implements the RouteExtractor in_

### spring.py
_Spring Framework route extractor.

Extracts REST routes from Spring controllers using annotations.

Spring routing via annotations:
- Controller: @Res_

**class** `class SpringRouteExtractor`
> Route extractor for Spring Framework.

    Extracts REST API routes from Spring controllers by analy

**Methods:**
- `def extract_routes(self, result: ParseResult) -> list[RouteInfo]`
- `def _get_mapping_info(self, annotation_name: str) -> tuple[str, str] | None`
- `def _extract_path_from_annotation(self, arguments: dict | str) -> str`
- `def _build_path(self, prefix: str, path: str) -> str`

### thinkphp.py
_ThinkPHP route extractor.

Extracts routes from ThinkPHP framework controllers using convention-based routing.

ThinkPHP routing convention:
- URL: /m_

**class** `class ThinkPHPRouteExtractor(RouteExtractor)`
> Route extractor for ThinkPHP framework.

    ThinkPHP uses convention-based routing where:
    - Con

**Methods:**
- `def can_extract(self, context: ExtractionContext) -> bool`
- `def extract_routes(self, context: ExtractionContext) -> list[RouteInfo]`
- `def _extract_description(self, symbol) -> str`

## Dependencies

- ..framework_detect
- ..parser
- ..route_extractor
- .spring
- .thinkphp
