summaryrefslogtreecommitdiff
path: root/utils/javapp/src
Commit message (Collapse)AuthorAgeFilesLines
* + new -varparas option that adds overloads for imported methods wherebyjonas2012-05-286-36/+71
| | | | | | Java array parameters are translated into single element var-parameters git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@21407 3ad0048d-3df7-0310-abae-a5850022a9f2
* + -prefix_constants <x>, -prefix_fields <x> and -prefix_innerclasses <x>jonas2012-04-2511-32/+73
| | | | | | | | | options to customise the prefixes that the translator adds to to resp. constant, field and inner class names. For an empty prefix, use "". Defaults: nothing for constants, "f" for fields and "Inner" for inner classes. git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@21041 3ad0048d-3df7-0310-abae-a5850022a9f2
* * don't mark final class methods as virtualjonas2012-04-251-1/+5
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@21040 3ad0048d-3df7-0310-abae-a5850022a9f2
* + support for detecting varargs functions -> mark their open arrayjonas2011-08-202-1/+4
| | | | | | | parameters as const, since the callee cannot modify the array itself in that case git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@18678 3ad0048d-3df7-0310-abae-a5850022a9f2
* * correctly set the external name of nested classes (should notjonas2011-08-202-1/+19
| | | | | | include the parent class names, those are added by the compiler) git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@18677 3ad0048d-3df7-0310-abae-a5850022a9f2
* * generate a declaration with an dynamic array and one with an open arrayjonas2011-08-207-65/+156
| | | | | | | | | | | | | | | | parameter in case of array parameters (and in case of constructors, make the open array as "const"; heuristic, not guaranteed 100% safe!) + support for generating include files rather than full units (e.g., for the system unit types), -i option * don't generate imports for anonymous inner types ($1 etc) * mark routines with 'package' visibility as 'public', because some packages are split over multiple units (system unit and jdk import unit) -> allows using these routines in illegal ways, which will result in run time errors + support to also select individual classes with the -x/-a parameters + add "virtual" modifier to methods where appropriate (so the compiler won't force it automatically anymore) git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@18439 3ad0048d-3df7-0310-abae-a5850022a9f2
* + generate external names for methods imported under a different namejonas2011-08-208-122/+214
| | | | | | | | | | | | | | | * switched to mode delphi to avoid problems with nested types in child classes having the same name as nested types in the parent * generate skeleton classes for all internal classes that have "package" visibility so you can inherit from them (full definitions are not possible because that causes circular dependencies) -> the entire official JDK 1.5 interface, except for java.awt.Dialog (circular dependency with java.awt.Window) can now be generated using -a java.awt.Dialog -a sun. -a com.sun. -a apple. -protected java. javax. org. (on Mac OS X; the "-a apple." probably has to be changed into something else on other platforms) git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@18409 3ad0048d-3df7-0310-abae-a5850022a9f2
* * first version of javapp that can create a compilable Pascal importjonas2011-08-2028-642/+2728
| | | | | | | | unit for at least java.lang.*, java.util.* java.io.* and java.security.*, using the following command line paramters: -a sun. -a com.sun. -a javax. -protected java.lang. java.util. java.io. java.security. -o java_base git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@18405 3ad0048d-3df7-0310-abae-a5850022a9f2
* + javap source code from JDK6, we be used to create javapp thatjonas2011-08-2019-0/+5195
dumps Java classes in Pascal import unit format git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@18404 3ad0048d-3df7-0310-abae-a5850022a9f2