~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Lib/java/enumsimple.swg

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-09-01 18:35:55 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050901183555-eq59uwhq8b62e44c
Tags: 1.3.24-1ubuntu4
* Use php5-dev instead of php4-dev, to kick php4 out of main.
* Drop support for generation of pike bindings, as nothing uses it,
  and swig is the only thing keeping pike7.6 in main (Ubuntu #13796)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * constant integers in the Java proxy class.
6
6
 * ----------------------------------------------------------------------------- */
7
7
 
 
8
// const enum SWIGTYPE & typemaps
 
9
%typemap(jni) const enum SWIGTYPE & "jint"
 
10
%typemap(jtype) const enum SWIGTYPE & "int"
 
11
%typemap(jstype) const enum SWIGTYPE & "int"
 
12
 
 
13
%typemap(in) const enum SWIGTYPE & ($*1_ltype temp)
 
14
%{ temp = ($*1_ltype)$input; 
 
15
   $1 = &temp; %}
 
16
%typemap(out) const enum SWIGTYPE &  %{ $result = (jint)*$1; %}
 
17
 
 
18
%typemap(directorin, descriptor="I") const enum SWIGTYPE &    "$input = (jint)$1_name;"
 
19
%typemap(javadirectorin) const enum SWIGTYPE & "$jniinput"
 
20
%typemap(javadirectorout) const enum SWIGTYPE & "$javacall"
 
21
 
 
22
%typecheck(SWIG_TYPECHECK_INT32) const enum SWIGTYPE & ""
 
23
 
 
24
%typemap(throws) const enum SWIGTYPE & %{
 
25
  (void)$1;
 
26
  SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "C++ $1_type exception thrown");
 
27
%}
 
28
 
 
29
%typemap(javain) const enum SWIGTYPE & "$javainput"
 
30
%typemap(javaout) const enum SWIGTYPE & {
 
31
    return $jnicall;
 
32
  }
 
33
 
 
34
 
 
35
// enum SWIGTYPE typemaps
8
36
%typemap(jni) enum SWIGTYPE "jint"
9
37
%typemap(jtype) enum SWIGTYPE "int"
10
38
%typemap(jstype) enum SWIGTYPE "int"
29
57
  }
30
58
 
31
59
%typemap(javaclassmodifiers) enum SWIGTYPE ""
32
 
%typemap(javabody) enum SWIGTYPE ""
 
60
%typemap(javabase)           enum SWIGTYPE ""
 
61
%typemap(javacode)           enum SWIGTYPE ""
 
62
%typemap(javaimports)        enum SWIGTYPE ""
 
63
%typemap(javainterfaces)     enum SWIGTYPE ""
 
64
%typemap(javabody)           enum SWIGTYPE ""
33
65
 
34
66
%javaenum(simple);
35
67