class AnalyzerSpring

Defined in:

analyzer/analyzers/analyzer_spring.cr

Constant Summary

REGEX_CLASS_DEFINITION = /^(((public|private|protected|default)\s+)|^)class\s+/
REGEX_ROUTE_CODE_LINE = /((?:andRoute|route)\s*\(|\.)\s*(GET|POST|DELETE|PUT)\(\s*"([^"]*)/
REGEX_ROUTER_CODE_BLOCK = /route\(\)?.*?\);/m

Instance Method Summary

Macro Summary

Instance methods inherited from class Analyzer

analyze analyze, base_path : String base_path, logger : NoirLogger logger, result : Array(Endpoint) result, url : String url

Constructor methods inherited from class Analyzer

new(options : Hash(Symbol, String)) new

Instance Method Detail

def analyze #

[View source]
def comma_in_bracket(content : String) #

[View source]
def extract_param(content : String) #

[View source]
def is_bracket(content : String) #

[View source]
def mapping_to_path(line : String) #

[View source]

Macro Detail

macro define_requestmapping_handlers(methods) #

[View source]