Android Question maybe b4a/b4j.exe get all public class/function return type,sub,The name and data type of each parameter?

xiaoyao

Active Member
Licensed User
Longtime User
maybe b4a/b4j.exe can call by java.exe -jar getjarINFO.jar abc.jar?
get all public class/function return type,sub,The name and data type of each parameter?


from:https://www.b4x.com/android/forum/threads/java-creating-libraries-for-b4a.6810/
about:Basic4android has a very good support for external libraries. In fact almost all of the internal keywords are loaded from an external library (Core library).

In order to develop a library you need to have Eclipse installed.
The Android plug-in is not required as the libraries are regular Java libraries.

The IDE is a .Net process. It cannot load or inspect jar files. Therefore together with each jar file there is an XML file that describes the file to the IDE. This file also holds the documentation for the online help.
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
If you have the same kind of help text in B4A or B4J as the XML help text of a library, then all you need to do is the following:

B4X Help text:
' This is tekst for the Helptext routine
' <code>
'public Sub Helptext
'    '--- Your code here
'End Sub
' </code>
public Sub Helptext
'    --- Your code here
End Sub
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
maybe b4a/b4j.exe can call by java.exe -jar getjarINFO.jar abc.jar?
get all public class/function return type,sub,The name and data type of each parameter?
I don't quite understand what you want from the long title of your message. If you create a library yourself, you can specify the public class/function return type, the sub and the name and data type of each parameter for the function yourself. You can find that specified description in the xml help file. It is up to the library designer how much time he spends on the added documentation. As a user of a library, you can also add any additional information to the library call yourself, see my previous post for this. What else do you want specifically?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
maybe b4a/b4j.exe can call by java.exe -jar getjarINFO.jar abc.jar?
get all public class/function return type,sub,The name and data type of each parameter?


from:https://www.b4x.com/android/forum/threads/java-creating-libraries-for-b4a.6810/
about:Basic4android has a very good support for external libraries. In fact almost all of the internal keywords are loaded from an external library (Core library).

In order to develop a library you need to have Eclipse installed.
The Android plug-in is not required as the libraries are regular Java libraries.

The IDE is a .Net process. It cannot load or inspect jar files. Therefore together with each jar file there is an XML file that describes the file to the IDE. This file also holds the documentation for the online help.
It is difficult to read your message.
Please post example code of your problem.

To create B4A and B4J libraries, there are a few ways.
  1. Compile your Java classes using Eclipse or IntelliJ IDEA into .jar and .xml.
  2. Compile your Java classes using Simple Library Compiler into .jar and .xml.
  3. Compile your B4X classes using B4A or B4J into .jar and .xml.
  4. Archive your B4X classes or modules using 7-Zip or WinRAR into b4xlib
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
I think they are referring to taking a jar file, and getting all the class names, field and methods (and their parameter types).
Like using reflection with getDeclaredMethods, getDeclaredFields etc.
 
Upvote 0
Top