Documentation
¶
Index ¶
- Variables
- type Emitter
- type Inspector
- func (i *Inspector) InspectFile(filename string) (*graph.File, error)
- func (i *Inspector) InspectPackage(packagePath string) (*graph.Package, error)
- func (i *Inspector) InspectPackages(rootPath string) ([]*graph.Package, error)
- func (i *Inspector) InspectProject(location string) (*graph.Project, error)
- func (i *Inspector) InspectSource(src []byte) (*graph.File, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var JavaTypeToGoType = map[string]struct { GoName string Kind reflect.Kind }{ "boolean": {"bool", reflect.Bool}, "char": {"rune", reflect.Int32}, "byte": {"byte", reflect.Uint8}, "short": {"int16", reflect.Int16}, "int": {"int32", reflect.Int32}, "long": {"int64", reflect.Int64}, "float": {"float32", reflect.Float32}, "double": {"float64", reflect.Float64}, "String": {"string", reflect.String}, "void": {"void", reflect.Invalid}, }
JavaTypeToGoType maps Java primitive types to Go equivalents
Functions ¶
This section is empty.
Types ¶
type Inspector ¶
type Inspector struct {
// contains filtered or unexported fields
}
Inspector provides functionality to inspect Java code and extract type information
func NewInspector ¶
NewInspector creates a new Java Inspector with the provided configuration
func (*Inspector) InspectFile ¶
InspectFile parses a Java source file and extracts types
func (*Inspector) InspectPackage ¶
InspectPackage inspects a Java package directory and extracts all types
func (*Inspector) InspectPackages ¶
InspectPackages inspects multiple Go package directories recursively
func (*Inspector) InspectProject ¶
InspectProject parses a Go source file and extracts types
Click to show internal directories.
Click to hide internal directories.