java

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStdlib

func IsStdlib(imp types.PackageName) bool

func IsTestPackage added in v0.26.0

func IsTestPackage(pkg string) bool

IsTestPackage tries to detect if the directory would contain test files or not. It assumes dir is a forward-slashed package name, not a possibly-back-slashed filepath.

Types

type Package

type Package struct {
	Name types.PackageName

	ImportedClasses                        *sorted_set.SortedSet[types.ClassName]
	ExportedClasses                        *sorted_set.SortedSet[types.ClassName]
	ImportedPackagesWithoutSpecificClasses *sorted_set.SortedSet[types.PackageName]
	Mains                                  *sorted_set.SortedSet[types.ClassName]

	// Especially useful for module mode
	Files       *sorted_set.SortedSet[string]
	TestPackage bool

	PerClassMetadata map[string]PerClassMetadata
}

func (*Package) AllAnnotations added in v0.26.0

func (p *Package) AllAnnotations() *sorted_set.SortedSet[types.ClassName]

type PerClassMetadata added in v0.6.0

type PerClassMetadata struct {
	AnnotationClassNames       *sorted_set.SortedSet[types.ClassName]
	MethodAnnotationClassNames *sorted_multiset.SortedMultiSet[string, types.ClassName]
	FieldAnnotationClassNames  *sorted_multiset.SortedMultiSet[string, types.ClassName]
}

Jump to

Keyboard shortcuts

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