From 2a37bb5d27e176daa6c376aba01d3a2641b4a593 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 3 Jun 2004 22:27:09 +0000 Subject: [PATCH] javagetcptr typemap replaced by the javabody typemap git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5966 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/java/enums.swg | 2 +- Lib/java/enumsimple.swg | 2 +- Lib/java/enumtypesafe.swg | 2 +- Lib/java/enumtypeunsafe.swg | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/java/enums.swg b/Lib/java/enums.swg index b00ab2dec..440fc9b5e 100644 --- a/Lib/java/enums.swg +++ b/Lib/java/enums.swg @@ -36,7 +36,7 @@ * values are specified then a lengthy linear search through all possible enums might occur. Specific typemaps could be * written to possibly optimise this lookup by taking advantage of characteristics peculiar to the targeted enum. */ -%typemap(javagetcptr) enum SWIGTYPE %{ +%typemap(javabody) enum SWIGTYPE %{ public final int swigValue() { return swigValue; } diff --git a/Lib/java/enumsimple.swg b/Lib/java/enumsimple.swg index 983812293..b2a210f94 100644 --- a/Lib/java/enumsimple.swg +++ b/Lib/java/enumsimple.swg @@ -28,7 +28,7 @@ } %typemap(javaclassmodifiers) enum SWIGTYPE "" -%typemap(javagetcptr) enum SWIGTYPE "" +%typemap(javabody) enum SWIGTYPE "" %javaenum(simple); diff --git a/Lib/java/enumtypesafe.swg b/Lib/java/enumtypesafe.swg index 6f808af49..a8ab1ce3d 100644 --- a/Lib/java/enumtypesafe.swg +++ b/Lib/java/enumtypesafe.swg @@ -36,7 +36,7 @@ * written to possibly optimise this lookup by taking advantage of characteristics peculiar to the targeted enum. * The special variable, $enumvalues, is replaced with a comma separated list of all the enum values. */ -%typemap(javagetcptr) enum SWIGTYPE %{ +%typemap(javabody) enum SWIGTYPE %{ public final int swigValue() { return swigValue; } diff --git a/Lib/java/enumtypeunsafe.swg b/Lib/java/enumtypeunsafe.swg index 8487e7d93..0772fc5d2 100644 --- a/Lib/java/enumtypeunsafe.swg +++ b/Lib/java/enumtypeunsafe.swg @@ -29,7 +29,7 @@ // '$static' will be replaced with either 'static' or nothing depending on whether the enum is an inner Java class or not %typemap(javaclassmodifiers) enum SWIGTYPE "public final $static class" -%typemap(javagetcptr) enum SWIGTYPE "" +%typemap(javabody) enum SWIGTYPE "" %javaenum(typeunsafe);