java

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	processor.BaseProcessor
}

Processor handles Java source code processing

func NewProcessor

func NewProcessor() *Processor

NewProcessor creates a new Java processor

func (*Processor) Process

func (p *Processor) Process(ctx context.Context, reader io.Reader, filename string) (*ir.DistilledFile, error)

Process implements processor.LanguageProcessor

func (*Processor) ProcessWithOptions

func (p *Processor) ProcessWithOptions(ctx context.Context, reader io.Reader, filename string, opts processor.ProcessOptions) (*ir.DistilledFile, error)

ProcessWithOptions implements processor.LanguageProcessor

type TreeSitterProcessor

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

TreeSitterProcessor uses tree-sitter for Java parsing

func NewTreeSitterProcessor

func NewTreeSitterProcessor() *TreeSitterProcessor

NewTreeSitterProcessor creates a new tree-sitter based processor

func (*TreeSitterProcessor) ProcessSource

func (p *TreeSitterProcessor) ProcessSource(ctx context.Context, source []byte, filename string) (*ir.DistilledFile, error)

ProcessSource processes Java source code using tree-sitter

Jump to

Keyboard shortcuts

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