class
Analyzer::Java::Struts2
- Analyzer::Java::Struts2
- Analyzer
- Reference
- Object
Defined in:
analyzer/analyzers/java/struts2.crConstant Summary
-
DEFAULT_LOCATORS =
["action", "actions", "struts", "struts2"] -
REST_METHODS =
{"index" => {"GET", ""}, "show" => {"GET", "/:id"}, "edit" => {"GET", "/:id/edit"}, "editNew" => {"GET", "/new"}, "deleteConfirm" => {"GET", "/:id/deleteConfirm"}, "create" => {"POST", ""}, "update" => {"PUT", "/:id"}, "destroy" => {"DELETE", "/:id"}} -
STRUTS_CONFIG_BASENAMES =
Set {"struts.xml", "struts-plugin.xml", "struts-deferred.xml"} -
VALUE_KEY_PATTERN =
/(?:^|[,({]\s*)value\s*=\s*"((?:\\.|[^"\\])*)"/m -
Crystal recompiles an interpolated regex literal on every evaluation (a full PCRE2 JIT compile). Every caller probes the
valuekey, so precompile its matcher once at load time.