MASES.JNetReflector
1.5.2
See the version list below for details.
dotnet tool install --global MASES.JNetReflector --version 1.5.2
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local MASES.JNetReflector --version 1.5.2
#tool dotnet:?package=MASES.JNetReflector&version=1.5.2
nuke :add-package MASES.JNetReflector --version 1.5.2
JNet: Reflector
Installation
To install the tool follows the instructions on https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools.
Usage
To use JNetReflector runs a command like the following:
- dotnet tool
jnetreflector -OriginRootPath C:\myJars -OriginJavadocUrl "https://thehost/javadoc/" -JavadocVersion 11 -DestinationRootPath C:\ReflectionDestination
jnr -OriginRootPath C:\myJars -OriginJavadocUrl "https://thehost/javadoc/" -JavadocVersion 11 -DestinationRootPath C:\ReflectionDestination
Command switch available
jnr accepts the following command-line switch:
- OriginRootPath: The origin path where Jars to be analyzed are stored
- OriginJavadocUrl: The base URL of the Javadoc to be associated to the classes
- JavadocVersion: The version of the Javadoc to be associated to the classes, it means the Javadoc tool version used
- DestinationRootPath: The destination root path where reflected classes will be stored
- JarList: A CSV list of JAR to be analyzed or folders containing the JARs
- DoNotAddJarsInClasspath: The option inform the tool to not add the Jars in classpath
- ModulesToParse: A CSV list of module patterns to be parsed during analysis, it avoids the usage of OriginRootPath
- NamespacesToAvoid: A CSV list of namespaces to be removed from analysis
- ClassesToAvoid: A CSV list of classes to be removed during analysis
- ClassesToBeListener: A CSV list of class names to be treated as Listener
- NamespacesInConflict: A CSV list of namespaces in conflict with class name: to this one will be added an "Ns" at the end
- ReflectDeprecated: The option forces the tool to write any constructor, method or field marked as deprecated, default is to avoid deprecated
- DisableGenerics: The option forces the tool to disable any generic type
- DryRun: Execute everything, but do not write anything to disk
- TraceLevel: The level of traces to be reported: 0 - Critical ... 5 - Verbose
- TraceTo: The file name where traces will be write, default write to console
JNet reflected classes
Many JNet classes are generated using JNetReflector. The JVM used to build the classes is the Temurin version 11 which is the minimum JVM version supported from JCOBridge. The command line interface used is:
jnetreflector -ModulesToParse org.,java. -DestinationRootPath .\src\net\JNet\Generated -OriginJavadocUrl "https://docs.oracle.com/en/java/javase/11/docs/api/" -JavadocVersion 11
-ClassesToBeListener javax.management.NotificationFilter
-ClassesToAvoid javax.swing.ToolTipManager,javax.swing.text.html.HTMLEditorKit$LinkController,javax.swing.plaf.basic.BasicTreeUI$MouseHandler,javax.swing.plaf.basic.BasicDesktopIconUI$MouseInputHandler,javax.swing.plaf.basic.BasicTabbedPaneUI$FocusHandler,javax.swing.plaf.basic.BasicComboBoxUI$KeyHandler,javax.swing.plaf.basic.BasicSliderUI$ComponentHandler,javax.swing.plaf.basic.BasicComboPopup$InvocationKeyHandler,javax.swing.plaf.basic.BasicTreeUI$KeyHandler,javax.swing.plaf.basic.BasicTreeUI$ComponentHandler,javax.swing.plaf.basic.BasicSplitPaneUI$FocusHandler,javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHandler
-NamespacesToAvoid org.jcp.xml.dsig.internal,com.oracle,com.sun,org.mases,org.junit,org.hamcrest,org.burningwave,org.graalvm,org.slf4j,java.awt.peer
-NamespacesInConflict java.lang.module,java.awt.color,java.awt.desktop,java.awt.image,java.awt.event,java.awt.font
Running environment for PowerShell users
The command above fails in PowerShell because the nested class separator ($) is used from PowerShell to substitute variable values. The previous command runs without problems in a Windows Command Prompt
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last updated | |
---|---|---|---|
2.5.11 | 108 | 12/20/2024 | |
2.5.10 | 103 | 11/4/2024 | |
2.5.9 | 135 | 9/19/2024 | |
2.5.8 | 98 | 7/31/2024 | |
2.5.7 | 69 | 7/30/2024 | |
2.5.6 | 85 | 7/28/2024 | |
2.5.5 | 123 | 6/27/2024 | |
2.5.4 | 129 | 6/22/2024 | |
2.5.3 | 107 | 6/18/2024 | |
2.5.2 | 115 | 6/11/2024 | |
2.5.1 | 136 | 5/25/2024 | |
2.5.0 | 108 | 5/14/2024 | |
2.4.0 | 240 | 2/29/2024 | |
2.3.0 | 215 | 2/20/2024 | |
2.2.5 | 176 | 1/30/2024 | |
2.2.4 | 154 | 1/27/2024 | |
2.2.3 | 203 | 1/24/2024 | |
2.2.2 | 202 | 1/24/2024 | |
2.2.1 | 216 | 1/20/2024 | |
2.2.0 | 204 | 1/17/2024 | |
2.1.1 | 271 | 12/18/2023 | |
2.1.0 | 238 | 11/25/2023 | |
2.0.2 | 322 | 10/18/2023 | |
2.0.1 | 247 | 7/11/2023 | |
2.0.0 | 192 | 7/5/2023 | |
1.5.5 | 234 | 5/5/2023 | |
1.5.4 | 232 | 4/16/2023 | |
1.5.3 | 239 | 4/10/2023 | |
1.5.2 | 291 | 3/13/2023 | |
1.5.1 | 319 | 2/9/2023 | |
1.5.0 | 317 | 2/8/2023 | |
1.4.15 | 376 | 11/21/2022 | |
1.4.14 | 414 | 11/9/2022 | |
1.4.13 | 386 | 11/9/2022 | |
1.4.12 | 410 | 10/30/2022 | |
1.4.11 | 451 | 10/27/2022 | |
1.4.8 | 519 | 10/20/2022 |