class

Analyzer::Java::Vertx

Inherits Analyzer < FileHelper < Reference < Object

Constants

HTTP_METHODS = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE", "QUERY"] of ::String
REGEX_CLIENT_TYPE_DECL = /\b(?:WebClient|HttpClient|WebClientSession)\s+(\w+)\b/

Outbound client types — same verb names as Router, never server routes.

REGEX_HTTPCLIENT_ASSIGN = /\b(\w+)\s*=\s*\w+\s*\.\s*createHttpClient\s*\(/
REGEX_MOUNTSUBPATH = /(\w+)\.mountSubRouter\s*\(([^)]*)\)/i
REGEX_QUERY_PARAM = /\.\s*queryParam\s*\(\s*["']([^"']+)["']\s*\)/

Unambiguous query accessors on RoutingContext (not getParam/pathParam).

REGEX_QUERY_PARAMS_GET = /\.\s*queryParams\s*\(\s*\)\s*\.\s*get\s*\(\s*["']([^"']+)["']\s*\)/
REGEX_ROUTE_ANY_HANDLER = /(\w+)\.route\s*\(([^)]*)\)\s*\.handler\s*\(\s*this::([\w$]+)\s*\)/i
REGEX_ROUTE_HANDLER_OPEN = /(\w+)\.route\s*\(([^)]*)\)\s*\.handler\s*\(/i

Bare route(path).handler(...) — candidate set for lambda/terminal handlers; method-ref form is handled by REGEX_ROUTE_ANY_HANDLER.

REGEX_ROUTE_HTTP_METHOD = /(\w+)\.route\s*\(([^)]*)\)/i
REGEX_ROUTE_METHOD = /(\w+)\.route\s*\(([^)]*)\)\s*\.\s*(get|post|put|delete|patch|head|options|connect|trace|query)\s*\(/i
REGEX_ROUTE_METHOD_HANDLER = /\.route\s*\(\s*["\']([^"\']*)["\']\s*\)\s*\.\s*(get|post|put|delete|patch|head|options|connect|trace|query)\s*\(\s*this::([\w$]+)\s*\)/i
REGEX_ROUTE_SUB_ROUTER = /(\w+)\.route\s*\(([^)]*)\)\s*\.subRouter\s*\(/i
REGEX_ROUTER_ROUTE = /(\w+)\.(get|post|put|delete|patch|head|options|connect|trace|query)\s*\(([^)]*)\)/i

Regex patterns for Vert.x route detection

REGEX_ROUTER_ROUTE_HANDLER = /router\.(get|post|put|delete|patch|head|options|connect|trace|query)\s*\(\s*["\']([^"\']*)["\']\s*\)\s*\.handler\s*\(\s*this::([\w$]+)\s*\)/i
REGEX_STATIC_HANDLER_ROUTE = /(\w+)\.route\s*\(([^)]*)\)\s*\.handler\s*\([^;]*StaticHandler\.create\s*\(/im
REGEX_WEBCLIENT_ASSIGN = /\b(\w+)\s*=\s*WebClient\s*\.\s*(?:create|wrap)\s*\(/
TERMINAL_HANDLER_MARKERS = [".end(", ".json(", ".redirect(", ".sendFile(", ".fail("]

Response-terminating RoutingContext/response calls used to distinguish real route handlers from pass-through middleware lambdas (.next()).

Class methods

tech_name
Source

Instance methods

analyze
Source
tech

Instance-side view of the same declaration. The per-file rescues live on this base class, which has no way to name the analyzer that is running inside them, so a skipped file could not be attributed to a tech. Deriving it from analyzer_for keeps the name written exactly once.

Source