diff --git a/SWIG/Doc/Manual/Java.html b/SWIG/Doc/Manual/Java.html index 494846c87..d93dd3cd4 100644 --- a/SWIG/Doc/Manual/Java.html +++ b/SWIG/Doc/Manual/Java.html @@ -2805,8 +2805,9 @@ int c = example.count('e',"Hello World");
+If you are writing your own typemaps to handle a particular type, you will normally have to write a collection of them. +The default typemaps are in java.swg and so might be a good place for finding typemaps to base any new ones on. + +
+The "jni", "jtype" and "jstype" typemaps are usually defined together to handle the Java to C/C++ type mapping. +An "in" typemap should be accompanied by a "javain" typemap and likewise an "out" typemap by a "javaout" typemap. +If an "in" typemap is written, a "freearg" and "argout" typemap may also need to be written +as some types have a default "freearg" and/or "argout" typemap which may need overriding. +The "freearg" typemap sometimes releases memory allocated by the "in" typemap. +The "argout" typemap sometimes sets values in function parameters which are passed by reference in Java. +
The default code generated by SWIG for the Java module comes from the typemaps in the java.swg library file which implements the Default primitive type mappings covered earlier. @@ -2967,17 +2980,6 @@ is released afterwards -
-If you are writing your own typemaps to handle a particular type, you will normally have to write a collection of them. -Take a look at the default typemaps in java.swg. -
-The "jni", "jtype" and "jstype" typemaps are usually defined together to handle the Java to C/C++ type mapping. -An "in" typemap is usually accompanied by a "javain" typemap and likewise an "out" typemap with a "javaout" typemap. -If an "in" typemap is written, a "freearg" and "argout" typemap may also need to be written. -as some types have a default "freearg" and/or "argout" typemap which may need overriding. -The "freearg" typemap sometimes releases memory allocated by the "in" typemap. -The "argout" typemap sometimes sets values in function parameters which are passed by reference in Java. -