Package com.ultikits.ultitools
Class LinkageAudit
java.lang.Object
com.ultikits.ultitools.LinkageAudit
Read-only startup and offline audit of symbolic server/framework references, not a verifier.
Reflection, string lookups, NMS and behaviour behind unchanged signatures are out of scope.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classUnclassified pre-scan result; runtime ownership is supplied only after normal main loading.(package private) static final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) static final int(package private) static final intprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleaneffectiveClasses(JarFile jar) (package private) static LinkageAudit.Auditinspect(File module, ClassLoader api, List<ClassRewriteRule> rules) static voidThe enclosing type is package-private; this launcher is not a published Java API.private static StringNormalises a slash or dotted package root to the dotted form start-up passes to the scanner.private static StringpackageName(String className) (package private) static intrun(String[] arguments, PrintStream output) Explicit API paths never inherit the host process's Paper API.private static voidselectClassEntry(JarEntry entry, boolean multiRelease, int runtime, Map<String, JarEntry> selected, Map<String, Integer> versions)
-
Field Details
-
EXIT_FINDINGS
static final int EXIT_FINDINGS- See Also:
-
EXIT_USAGE
static final int EXIT_USAGE- See Also:
-
EXIT_IO
static final int EXIT_IO- See Also:
-
USAGE
- See Also:
-
-
Constructor Details
-
LinkageAudit
private LinkageAudit()
-
-
Method Details
-
inspect
static LinkageAudit.Audit inspect(File module, ClassLoader api, List<ClassRewriteRule> rules) throws IOException - Throws:
IOException
-
effectiveClasses
- Throws:
IOException
-
selectClassEntry
-
run
Explicit API paths never inherit the host process's Paper API. Additional API jars are repeatable. The --api index must include every runtime dependency whose classes the audited code extends or calls: the server API and its transitive dependencies, plus the audited artifact's own provided/runtime dependencies.Exit status: 0 when no own-code reference is unresolved, 1 when one is, 2 for invalid arguments, and 3 when an API path or module JAR does not exist or cannot be read, so a caller can tell findings from a failed run. An
--ownroot is a package, in slash or dotted form, matched on a package boundary exactly as start-up matches a module's scan roots.- Throws:
IOException
-
ownRoot
Normalises a slash or dotted package root to the dotted form start-up passes to the scanner. -
main
The enclosing type is package-private; this launcher is not a published Java API.- Throws:
IOException
-
apiOwner
-
packageName
-