Documentation
¶
Overview ¶
Package javabackend emits deterministic Java 25 source from the typed Go shadow produced by the Go+ front end.
Index ¶
Constants ¶
View Source
const ( RuntimeABI = 1 ArtifactSchema = "goplus.java.artifacts/v1" RuntimePackage = "dev.goforge.goplus.runtime" )
Variables ¶
This section is empty.
Functions ¶
func JavaPackage ¶
JavaPackage reverses an import path's DNS name and preserves path segments: goforge.dev/x/y becomes dev.goforge.x.y.
func RuntimeSources ¶
RuntimeSources is the versioned Java runtime ABI used by thin Go+ module jars. Keeping it in generated source makes bootstrap builds reproducible; release packaging compiles the same bytes into goplus-runtime-abi1.jar.
Types ¶
type Config ¶
type Config struct {
Root string
Patterns []string
Overlay map[string][]byte
Release int
Kind string
SourceDir string
RuntimeSourceDir string
PackagePrefix string
ModuleName string
MainPackage string
StrongModule bool
Bundle bool
IncludeTests bool
JDKHome string
Classpath []string
Modulepath []string
}
Config controls Java source layout and the stable host-language ABI.
type Diagnostic ¶
Diagnostic is a source-positioned Java portability error.
Click to show internal directories.
Click to hide internal directories.