java

package
v0.0.0-...-fa63995 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package java provides Java analysis using tree-sitter. Detects imports, HTTP endpoints (Spring, JAX-RS, Quarkus), database/queue/cache infrastructure, and outbound HTTP client calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer implements the scanner.Analyzer interface for Java files.

func New

func New() *Analyzer

New creates a Java analyzer with a tree-sitter parser.

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(path string) ([]*model.Node, []*model.Edge, error)

Analyze parses a Java file and extracts architectural elements.

func (*Analyzer) Clone

func (a *Analyzer) Clone() scanner.Analyzer

Clone returns an independent copy with a fresh tree-sitter parser. Tree-sitter parsers are not thread-safe; each goroutine needs its own.

func (*Analyzer) Extensions

func (a *Analyzer) Extensions() []string

Extensions returns Java file extensions.

func (*Analyzer) Language

func (a *Analyzer) Language() string

Language returns "java".

func (*Analyzer) Signature

func (a *Analyzer) Signature() string

Signature returns the analyzer's behavior version used for cache invalidation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL