Add more details on and special variables

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9955 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-09-25 21:24:22 +00:00
commit 3efe579453
3 changed files with 11 additions and 6 deletions

View file

@ -192,6 +192,8 @@ jniclassinterfaces -> imclassinterfaces
<p>Special variable equivalent names:</p> <p>Special variable equivalent names:</p>
<div class="code"><pre> <div class="code"><pre>
$javaclassname -&gt; $csclassname $javaclassname -&gt; $csclassname
$&amp;javaclassname -&gt; $&amp;csclassname
$*javaclassname -&gt; $*csclassname
$javainput -&gt; $csinput $javainput -&gt; $csinput
$jnicall -&gt; $imcall $jnicall -&gt; $imcall
</pre></div> </pre></div>

View file

@ -4994,11 +4994,14 @@ The Java module uses a few additional special variables:
<p> <p>
<b><tt>$javaclassname</tt></b><br> <b><tt>$javaclassname</tt></b><br>
<tt>$javaclassname</tt> is similar to <tt>$1_type</tt>. It expands to the class name for use in Java. This special variable works like the other <a href="Typemaps.html#Typemaps_special_variables">special variables</a>
When wrapping a union, struct or class, it expands to the Java proxy class name. and <tt>$javaclassname</tt> is similar to <tt>$1_type</tt>. It expands to the class name for use in Java given a pointer.
Otherwise it expands to the type wrapper class name. SWIG wraps unions, structs and classes using pointers and in this case it expands to the Java proxy class name.
For example, <tt>$javaclassname</tt> is replaced by <tt>Foo</tt> when the wrapping a <tt>struct Foo</tt> or <tt>struct Foo *</tt> and For example, <tt>$javaclassname</tt> is replaced by the proxy classname <tt>Foo</tt> when wrapping a <tt>Foo *</tt> and
<tt>SWIGTYPE_p_unsigned_short</tt> is used for <tt>unsigned short *</tt>. <tt>$&amp;javaclassname</tt> expands to the proxy classname when wrapping the C/C++ type <tt>Foo</tt> and <tt>$*javaclassname</tt>
expands to the proxy classname when wrapping <tt>Foo *&amp;</tt>.
If the type does not have an associated proxy class, it expands to the type wrapper class name, for example,
<tt>SWIGTYPE_p_unsigned_short</tt> is generated when wrapping <tt>unsigned short *</tt>.
</p> </p>
<p> <p>

View file

@ -1618,7 +1618,7 @@ apply). At this time, only typemaps that apply to argument conversion support th
</p> </p>
<H3><a name="Typemaps_nn24"></a>10.4.3 Special variables</H3> <H3><a name="Typemaps_special_variables"></a>10.4.3 Special variables</H3>
<p> <p>