Documentation
¶
Overview ¶
Package jvm implements lightweight regex-based parsers for JVM languages: Scala and Kotlin. No tree-sitter dependency — pure Go regex extraction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
Dependency represents an import statement.
type Entity ¶
type Entity struct {
Name string
Type string // "class", "object", "trait", "interface", "function", "method", "val", "var", "enum", "sealed_class", "data_class", "annotation"
Kind string
Signature string
StartLine int
EndLine int
Parent string
}
Entity represents a named code element.
type ParseResult ¶
type ParseResult struct {
FilePath string
Entities []*Entity
Dependencies []*Dependency
}
ParseResult is the output of a JVM language parse.
func ParseKotlin ¶
func ParseKotlin(filePath string, content string) *ParseResult
ParseKotlin extracts classes, interfaces, objects, functions, properties, and imports.
func ParseScala ¶
func ParseScala(filePath string, content string) *ParseResult
ParseScala extracts classes, objects, traits, defs, vals, and imports.
Click to show internal directories.
Click to hide internal directories.