Files
codebase-memory-mcp/internal/lang/java.go
T
Martin Vogel fb30ca61d6 v0.2.0: Multi-DB router, enrichment pipeline, update-available notification, enhanced language support
Major changes:
- Store router: per-project SQLite databases with automatic migration
- Pipeline enrichment: community detection, inheritance, decorators, read/write tracking, test detection, type usage, exception flows, configuration relationships
- Update checker: lightweight GitHub release check on startup, injects update_available into first tool response
- Language support: enhanced extraction for C++, C#, Go, Java, JavaScript, Lua, PHP, Python, Rust, Scala, TSX, TypeScript
- Cypher executor: improved query execution with better aggregation and pattern matching
- HTTP link detection: cross-service HTTP call inference
- CLI mode: extended with --raw flag, human-friendly summaries for all tools
- Search: sort_by support, exclude_labels, glob matching improvements
- AST debug tool for parser development
2026-02-28 01:58:47 +01:00

29 lines
1.1 KiB
Go

package lang
func init() {
Register(&LanguageSpec{
Language: Java,
FileExtensions: []string{".java"},
FunctionNodeTypes: []string{"method_declaration", "constructor_declaration"},
ClassNodeTypes: []string{
"class_declaration",
"interface_declaration",
"enum_declaration",
"annotation_type_declaration",
"record_declaration",
},
FieldNodeTypes: []string{"field_declaration"},
ModuleNodeTypes: []string{"program"},
CallNodeTypes: []string{"method_invocation"},
ImportNodeTypes: []string{"import_declaration"},
ImportFromTypes: []string{"import_declaration"},
BranchingNodeTypes: []string{"if_statement", "for_statement", "enhanced_for_statement", "while_statement", "switch_expression", "switch_block_statement_group", "try_statement", "catch_clause"},
AssignmentNodeTypes: []string{"assignment_expression"},
ThrowNodeTypes: []string{"throw_statement"},
ThrowsClauseField: "throws",
DecoratorNodeTypes: []string{"marker_annotation", "annotation"},
EnvAccessFunctions: []string{"System.getenv", "System.getProperty"},
})
}