'/* -----------------------------------------------------------------------------\n * java.swg\n *\n * Java typemaps\n * ----------------------------------------------------------------------------- */' Comment.Multiline '\n' Text '\n' Text '%include' Name.Function ' ' Text '<' Operator 'javahead' Name '.' Punctuation 'swg' Name '>' Operator '\n' Text '\n' Text '/* The jni, jtype and jstype typemaps work together and so there should be one of each. \n * The jni typemap contains the JNI type used in the JNI (C/C++) code. \n * The jtype typemap contains the Java type used in the JNI intermediary class. \n * The jstype typemap contains the Java type used in the Java proxy classes, type wrapper classes and module class. */' Comment.Multiline '\n' Text '\n' Text '/* Fragments */' Comment.Multiline '\n' Text '%fragment' Name.Function '(' Punctuation '"' Literal.String 'SWIG_PackData' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String 'header' Literal.String '"' Literal.String ')' Punctuation ' ' Text '{' Punctuation '\n' Text '/* Pack binary data into a string */' Comment.Multiline '\n' Text 'SWIGINTERN' Name ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text 'SWIG_PackData' Name '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'c' Name ',' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '*' Operator 'ptr' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'sz' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'static' Keyword ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text 'hex' Name '[' Punctuation '17' Literal.Number.Integer ']' Punctuation ' ' Text '=' Operator ' ' Text '"' Literal.String '0123456789abcdef' Literal.String '"' Literal.String ';' Punctuation '\n' Text ' ' Text 'register' Keyword ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '*' Operator 'u' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation ' ' Text 'ptr' Name ';' Punctuation '\n' Text ' ' Text 'register' Keyword ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '*' Operator 'eu' Name ' ' Text '=' Operator ' ' Text 'u' Name ' ' Text '+' Operator ' ' Text 'sz' Name ';' Punctuation '\n' Text ' ' Text 'for' Keyword ' ' Text '(' Punctuation ';' Punctuation ' ' Text 'u' Name ' ' Text '!' Operator '=' Operator ' ' Text 'eu' Name ';' Punctuation ' ' Text '+' Operator '+' Operator 'u' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'register' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text 'uu' Name ' ' Text '=' Operator ' ' Text '*' Operator 'u' Name ';' Punctuation '\n' Text ' ' Text '*' Operator '(' Punctuation 'c' Name '+' Operator '+' Operator ')' Punctuation ' ' Text '=' Operator ' ' Text 'hex' Name '[' Punctuation '(' Punctuation 'uu' Name ' ' Text '&' Operator ' ' Text '0xf0' Literal.Number.Hex ')' Punctuation ' ' Text '>' Operator '>' Operator ' ' Text '4' Literal.Number.Integer ']' Punctuation ';' Punctuation '\n' Text ' ' Text '*' Operator '(' Punctuation 'c' Name '+' Operator '+' Operator ')' Punctuation ' ' Text '=' Operator ' ' Text 'hex' Name '[' Punctuation 'uu' Name ' ' Text '&' Operator ' ' Text '0xf' Literal.Number.Hex ']' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text 'c' Name ';' Punctuation '\n' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%fragment' Name.Function '(' Punctuation '"' Literal.String 'SWIG_UnPackData' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String 'header' Literal.String '"' Literal.String ')' Punctuation ' ' Text '{' Punctuation '\n' Text '/* Unpack binary data from a string */' Comment.Multiline '\n' Text 'SWIGINTERN' Name ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text 'SWIG_UnpackData' Name '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator 'c' Name ',' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '*' Operator 'ptr' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'sz' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'register' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '*' Operator 'u' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation ' ' Text 'ptr' Name ';' Punctuation '\n' Text ' ' Text 'register' Keyword ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '*' Operator 'eu' Name ' ' Text '=' Operator ' ' Text 'u' Name ' ' Text '+' Operator ' ' Text 'sz' Name ';' Punctuation '\n' Text ' ' Text 'for' Keyword ' ' Text '(' Punctuation ';' Punctuation ' ' Text 'u' Name ' ' Text '!' Operator '=' Operator ' ' Text 'eu' Name ';' Punctuation ' ' Text '+' Operator '+' Operator 'u' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'register' Keyword ' ' Text 'char' Keyword.Type ' ' Text 'd' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation 'c' Name '+' Operator '+' Operator ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'register' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text 'uu' Name ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '(' Punctuation 'd' Name ' ' Text '>' Operator '=' Operator ' ' Text "'" Literal.String.Char '0' Literal.String.Char "'" Literal.String.Char ')' Punctuation ' ' Text '&' Operator '&' Operator ' ' Text '(' Punctuation 'd' Name ' ' Text '<' Operator '=' Operator ' ' Text "'" Literal.String.Char '9' Literal.String.Char "'" Literal.String.Char ')' Punctuation ')' Punctuation '\n' Text ' ' Text 'uu' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '(' Punctuation 'd' Name ' ' Text '-' Operator ' ' Text "'" Literal.String.Char '0' Literal.String.Char "'" Literal.String.Char ')' Punctuation ' ' Text '<' Operator '<' Operator ' ' Text '4' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'else' Keyword ' ' Text 'if' Name.Function ' ' Text '(' Punctuation '(' Punctuation 'd' Name ' ' Text '>' Operator '=' Operator ' ' Text "'" Literal.String.Char 'a' Literal.String.Char "'" Literal.String.Char ')' Punctuation ' ' Text '&' Operator '&' Operator ' ' Text '(' Punctuation 'd' Name ' ' Text '<' Operator '=' Operator ' ' Text "'" Literal.String.Char 'f' Literal.String.Char "'" Literal.String.Char ')' Punctuation ')' Punctuation '\n' Text ' ' Text 'uu' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '(' Punctuation 'd' Name ' ' Text '-' Operator ' ' Text '(' Punctuation "'" Literal.String.Char 'a' Literal.String.Char "'" Literal.String.Char '-10' Literal.Number.Integer ')' Punctuation ')' Punctuation ' ' Text '<' Operator '<' Operator ' ' Text '4' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'else' Keyword ' \n ' Text 'return' Name.Function ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'd' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation 'c' Name '+' Operator '+' Operator ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '(' Punctuation 'd' Name ' ' Text '>' Operator '=' Operator ' ' Text "'" Literal.String.Char '0' Literal.String.Char "'" Literal.String.Char ')' Punctuation ' ' Text '&' Operator '&' Operator ' ' Text '(' Punctuation 'd' Name ' ' Text '<' Operator '=' Operator ' ' Text "'" Literal.String.Char '9' Literal.String.Char "'" Literal.String.Char ')' Punctuation ')' Punctuation '\n' Text ' ' Text 'uu' Name ' ' Text '|' Operator '=' Operator ' ' Text '(' Punctuation 'd' Name ' ' Text '-' Operator ' ' Text "'" Literal.String.Char '0' Literal.String.Char "'" Literal.String.Char ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'else' Keyword ' ' Text 'if' Name.Function ' ' Text '(' Punctuation '(' Punctuation 'd' Name ' ' Text '>' Operator '=' Operator ' ' Text "'" Literal.String.Char 'a' Literal.String.Char "'" Literal.String.Char ')' Punctuation ' ' Text '&' Operator '&' Operator ' ' Text '(' Punctuation 'd' Name ' ' Text '<' Operator '=' Operator ' ' Text "'" Literal.String.Char 'f' Literal.String.Char "'" Literal.String.Char ')' Punctuation ')' Punctuation '\n' Text ' ' Text 'uu' Name ' ' Text '|' Operator '=' Operator ' ' Text '(' Punctuation 'd' Name ' ' Text '-' Operator ' ' Text '(' Punctuation "'" Literal.String.Char 'a' Literal.String.Char "'" Literal.String.Char '-10' Literal.Number.Integer ')' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'else' Keyword ' \n ' Text 'return' Name.Function ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text '*' Operator 'u' Name ' ' Text '=' Operator ' ' Text 'uu' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text 'c' Name ';' Punctuation '\n' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '/* Primitive types */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'bool' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jboolean' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jchar' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jbyte' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jshort' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jshort' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jint' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jint' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jint' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jobject' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'float' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jfloat' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'double' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'jdouble' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '"' Literal.String 'void' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'bool' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'boolean' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'char' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'byte' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'short' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'short' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'int' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'int' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'int' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'java.math.BigInteger' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'float' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'float' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'double' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'double' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '"' Literal.String 'void' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'bool' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'boolean' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'char' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'byte' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'short' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'short' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'int' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'int' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'int' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'java.math.BigInteger' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'float' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'float' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'double' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String 'double' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '"' Literal.String 'void' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ',' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String 'jstring' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ',' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String 'String' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ',' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String 'String' Literal.String '"' Literal.String '\n' Text '\n' Text '/* JNI types */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jboolean' Name ' ' Text '"' Literal.String 'jboolean' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jchar' Name ' ' Text '"' Literal.String 'jchar' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jbyte' Name ' ' Text '"' Literal.String 'jbyte' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jshort' Name ' ' Text '"' Literal.String 'jshort' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jint' Name ' ' Text '"' Literal.String 'jint' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jlong' Name ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jfloat' Name ' ' Text '"' Literal.String 'jfloat' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jdouble' Name ' ' Text '"' Literal.String 'jdouble' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jstring' Name ' ' Text '"' Literal.String 'jstring' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jobject' Name ' ' Text '"' Literal.String 'jobject' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jbooleanArray' Name ' ' Text '"' Literal.String 'jbooleanArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jcharArray' Name ' ' Text '"' Literal.String 'jcharArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jbyteArray' Name ' ' Text '"' Literal.String 'jbyteArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jshortArray' Name ' ' Text '"' Literal.String 'jshortArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jintArray' Name ' ' Text '"' Literal.String 'jintArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jlongArray' Name ' ' Text '"' Literal.String 'jlongArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jfloatArray' Name ' ' Text '"' Literal.String 'jfloatArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jdoubleArray' Name ' ' Text '"' Literal.String 'jdoubleArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'jobjectArray' Name ' ' Text '"' Literal.String 'jobjectArray' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jboolean' Name ' ' Text '"' Literal.String 'boolean' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jchar' Name ' ' Text '"' Literal.String 'char' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jbyte' Name ' ' Text '"' Literal.String 'byte' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jshort' Name ' ' Text '"' Literal.String 'short' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jint' Name ' ' Text '"' Literal.String 'int' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jlong' Name ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jfloat' Name ' ' Text '"' Literal.String 'float' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jdouble' Name ' ' Text '"' Literal.String 'double' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jstring' Name ' ' Text '"' Literal.String 'String' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jobject' Name ' ' Text '"' Literal.String 'Object' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jbooleanArray' Name ' ' Text '"' Literal.String 'boolean[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jcharArray' Name ' ' Text '"' Literal.String 'char[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jbyteArray' Name ' ' Text '"' Literal.String 'byte[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jshortArray' Name ' ' Text '"' Literal.String 'short[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jintArray' Name ' ' Text '"' Literal.String 'int[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jlongArray' Name ' ' Text '"' Literal.String 'long[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jfloatArray' Name ' ' Text '"' Literal.String 'float[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jdoubleArray' Name ' ' Text '"' Literal.String 'double[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'jobjectArray' Name ' ' Text '"' Literal.String 'Object[]' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jboolean' Name ' ' Text '"' Literal.String 'boolean' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jchar' Name ' ' Text '"' Literal.String 'char' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jbyte' Name ' ' Text '"' Literal.String 'byte' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jshort' Name ' ' Text '"' Literal.String 'short' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jint' Name ' ' Text '"' Literal.String 'int' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jlong' Name ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jfloat' Name ' ' Text '"' Literal.String 'float' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jdouble' Name ' ' Text '"' Literal.String 'double' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jstring' Name ' ' Text '"' Literal.String 'String' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jobject' Name ' ' Text '"' Literal.String 'Object' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jbooleanArray' Name ' ' Text '"' Literal.String 'boolean[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jcharArray' Name ' ' Text '"' Literal.String 'char[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jbyteArray' Name ' ' Text '"' Literal.String 'byte[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jshortArray' Name ' ' Text '"' Literal.String 'short[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jintArray' Name ' ' Text '"' Literal.String 'int[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jlongArray' Name ' ' Text '"' Literal.String 'long[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jfloatArray' Name ' ' Text '"' Literal.String 'float[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jdoubleArray' Name ' ' Text '"' Literal.String 'double[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'jobjectArray' Name ' ' Text '"' Literal.String 'Object[]' Literal.String '"' Literal.String '\n' Text '\n' Text '/* Non primitive types */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '"' Literal.String '$&javaclassname' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String '$javaclassname' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ' ' Text '"' Literal.String '$javaclassname' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ' ' Text '"' Literal.String '$javaclassname' Literal.String '"' Literal.String '\n' Text '\n' Text '/* pointer to a class member */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String 'jstring' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String 'String' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String '$javaclassname' Literal.String '"' Literal.String '\n' Text '\n' Text '/* The following are the in, out, freearg, argout typemaps. These are the JNI code generating typemaps for converting from Java to C and visa versa. */' Comment.Multiline '\n' Text '\n' Text '/* primitive types */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'bool' Keyword.Type '\n' Text '%' Operator '{' Punctuation ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '$input' Name ' ' Text '?' Operator ' ' Text 'true' Name.Builtin ' ' Text ':' Operator ' ' Text 'false' Name.Builtin ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ')' Punctuation ' ' Text 'bool' Keyword.Type '\n' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '$input' Name ' ' Text '?' Operator ' ' Text 'true' Name.Builtin ' ' Text ':' Operator ' ' Text 'false' Name.Builtin ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'bool' Keyword.Type ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'bool' Keyword.Type ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'float' Keyword.Type ',' Punctuation ' \n ' Text 'double' Keyword.Type '\n' Text '%' Operator '{' Punctuation ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ')' Punctuation ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'float' Keyword.Type ',' Punctuation ' \n ' Text 'double' Keyword.Type '\n' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'Z' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'bool' Keyword.Type ' ' Text '"' Literal.String '$input = (jboolean) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'C' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '"' Literal.String '$input = (jint) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'B' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '"' Literal.String '$input = (jbyte) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'S' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '"' Literal.String '$input = (jshort) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'S' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'short' Keyword.Type ' ' Text '"' Literal.String '$input = (jshort) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'I' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '"' Literal.String '$input = (jint) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'I' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'int' Keyword.Type ' ' Text '"' Literal.String '$input = (jint) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'J' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '"' Literal.String '$input = (jlong) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'I' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'long' Keyword.Type ' ' Text '"' Literal.String '$input = (jint) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'J' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '"' Literal.String '$input = (jlong) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'J' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '"' Literal.String '$input = (jlong) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'F' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'float' Keyword.Type ' ' Text '"' Literal.String '$input = (jfloat) $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'D' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'double' Keyword.Type ' ' Text '"' Literal.String '$input = (jdouble) $1;' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'float' Keyword.Type ',' Punctuation ' \n ' Text 'double' Keyword.Type '\n' Text ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'float' Keyword.Type ',' Punctuation ' \n ' Text 'double' Keyword.Type '\n' Text ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'bool' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jboolean' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jchar' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyte' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jshort' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'short' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jshort' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jint' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'int' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jint' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jlong' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'long' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jint' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jlong' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jlong' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'float' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jfloat' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'double' Keyword.Type ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jdouble' Name ')' Punctuation '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '/* unsigned long long */' Comment.Multiline '\n' Text '/* Convert from BigInteger using the toByteArray member function */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '{' Punctuation ' \n ' Text 'jclass' Name ' ' Text 'clazz' Name ';' Punctuation '\n' Text ' ' Text 'jmethodID' Name ' ' Text 'mid' Name ';' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ' ' Text 'ba' Name ';' Punctuation '\n' Text ' ' Text 'jbyte' Name '*' Operator ' ' Text 'bae' Name ';' Punctuation '\n' Text ' ' Text 'jsize' Name ' ' Text 'sz' Name ';' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ' ' Text 'i' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaNullPointerException' Name ',' Punctuation ' ' Text '"' Literal.String 'BigInteger null' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'clazz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'GetObjectClass' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'mid' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'GetMethodID' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text '"' Literal.String 'toByteArray' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String '()[B' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'ba' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyteArray' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'CallObjectMethod' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text 'mid' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'bae' Name ' ' Text '=' Operator ' ' Text 'JCALL2' Name '(' Punctuation 'GetByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'sz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'GetArrayLength' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'for' Keyword '(' Punctuation 'i' Name '=' Operator '0' Literal.Number.Integer ';' Punctuation ' ' Text 'i' Name '<' Operator 'sz' Name ';' Punctuation ' ' Text 'i' Name '+' Operator '+' Operator ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1' Name ' ' Text '<' Operator '<' Operator ' ' Text '8' Literal.Number.Integer ')' Punctuation ' ' Text '|' Operator ' ' Text '(' Punctuation '$1_type' Name ')' Punctuation '(' Punctuation 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ')' Punctuation 'bae' Name '[' Punctuation 'i' Name ']' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'JCALL3' Name '(' Punctuation 'ReleaseByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text 'bae' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '{' Punctuation ' \n ' Text 'jclass' Name ' ' Text 'clazz' Name ';' Punctuation '\n' Text ' ' Text 'jmethodID' Name ' ' Text 'mid' Name ';' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ' ' Text 'ba' Name ';' Punctuation '\n' Text ' ' Text 'jbyte' Name '*' Operator ' ' Text 'bae' Name ';' Punctuation '\n' Text ' ' Text 'jsize' Name ' ' Text 'sz' Name ';' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ' ' Text 'i' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaNullPointerException' Name ',' Punctuation ' ' Text '"' Literal.String 'BigInteger null' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'clazz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'GetObjectClass' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'mid' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'GetMethodID' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text '"' Literal.String 'toByteArray' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String '()[B' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'ba' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyteArray' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'CallObjectMethod' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text 'mid' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'bae' Name ' ' Text '=' Operator ' ' Text 'JCALL2' Name '(' Punctuation 'GetByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'sz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'GetArrayLength' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'for' Keyword '(' Punctuation 'i' Name '=' Operator '0' Literal.Number.Integer ';' Punctuation ' ' Text 'i' Name '<' Operator 'sz' Name ';' Punctuation ' ' Text 'i' Name '+' Operator '+' Operator ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$result' Name ' ' Text '<' Operator '<' Operator ' ' Text '8' Literal.Number.Integer ')' Punctuation ' ' Text '|' Operator ' ' Text '(' Punctuation '$1_type' Name ')' Punctuation '(' Punctuation 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ')' Punctuation 'bae' Name '[' Punctuation 'i' Name ']' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'JCALL3' Name '(' Punctuation 'ReleaseByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text 'bae' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '\n' Text "/* Convert to BigInteger - byte array holds number in 2's complement big endian format */" Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '{' Punctuation ' \n ' Text 'jbyteArray' Name ' ' Text 'ba' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewByteArray' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '9' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jbyte' Name '*' Operator ' ' Text 'bae' Name ' ' Text '=' Operator ' ' Text 'JCALL2' Name '(' Punctuation 'GetByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jclass' Name ' ' Text 'clazz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'FindClass' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '"' Literal.String 'java/math/BigInteger' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jmethodID' Name ' ' Text 'mid' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'GetMethodID' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text '"' Literal.String '' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String '([B)V' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jobject' Name ' ' Text 'bigint' Name ';' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ' ' Text 'i' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'bae' Name '[' Punctuation '0' Literal.Number.Integer ']' Punctuation ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'for' Keyword '(' Punctuation 'i' Name '=' Operator '1' Literal.Number.Integer ';' Punctuation ' ' Text 'i' Name '<' Operator '9' Literal.Number.Integer ';' Punctuation ' ' Text 'i' Name '+' Operator '+' Operator ' ' Text ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'bae' Name '[' Punctuation 'i' Name ']' Punctuation ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyte' Name ')' Punctuation '(' Punctuation '$1' Name '>' Operator '>' Operator '8' Literal.Number.Integer '*' Operator '(' Punctuation '8' Literal.Number.Integer '-' Operator 'i' Name ')' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'JCALL3' Name '(' Punctuation 'ReleaseByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text 'bae' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'bigint' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'NewObject' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text 'mid' Name ',' Punctuation ' ' Text 'ba' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text 'bigint' Name ';' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '/* Convert to BigInteger (see out typemap) */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'Ljava/math/BigInteger;' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '{' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ' ' Text 'ba' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewByteArray' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '9' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jbyte' Name '*' Operator ' ' Text 'bae' Name ' ' Text '=' Operator ' ' Text 'JCALL2' Name '(' Punctuation 'GetByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jclass' Name ' ' Text 'clazz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'FindClass' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '"' Literal.String 'java/math/BigInteger' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jmethodID' Name ' ' Text 'mid' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'GetMethodID' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text '"' Literal.String '' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String '([B)V' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jobject' Name ' ' Text 'bigint' Name ';' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ' ' Text 'swig_i' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'bae' Name '[' Punctuation '0' Literal.Number.Integer ']' Punctuation ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'for' Keyword '(' Punctuation 'swig_i' Name '=' Operator '1' Literal.Number.Integer ';' Punctuation ' ' Text 'swig_i' Name '<' Operator '9' Literal.Number.Integer ';' Punctuation ' ' Text 'swig_i' Name '+' Operator '+' Operator ' ' Text ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'bae' Name '[' Punctuation 'swig_i' Name ']' Punctuation ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyte' Name ')' Punctuation '(' Punctuation '$1' Name '>' Operator '>' Operator '8' Literal.Number.Integer '*' Operator '(' Punctuation '8' Literal.Number.Integer '-' Operator 'swig_i' Name ')' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'JCALL3' Name '(' Punctuation 'ReleaseByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text 'bae' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'bigint' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'NewObject' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text 'mid' Name ',' Punctuation ' ' Text 'ba' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$input' Name ' ' Text '=' Operator ' ' Text 'bigint' Name ';' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '/* char * - treat as String */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'GetStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$1' Name ')' Punctuation ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ',' Punctuation ' ' Text 'warning' Name '=' Operator 'SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'GetStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$result' Name ')' Punctuation ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'Ljava/lang/String;' Literal.String '"' Literal.String ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text '{' Punctuation '\n' Text ' ' Text '$input' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$1' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$input' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewStringUTF' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$input' Name ')' Punctuation ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'freearg' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text '{' Punctuation ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$1' Name ')' Punctuation ' ' Text 'JCALL2' Name '(' Punctuation 'ReleaseStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text '{' Punctuation ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$1' Name ')' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewStringUTF' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '/* char *& - treat as String */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'GetStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator 'temp' Name ')' Punctuation ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '&' Operator 'temp' Name ';' Punctuation '\n' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'freearg' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ' ' Text '{' Punctuation ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$1' Name ' ' Text '&' Operator '&' Operator ' ' Text '*' Operator '$1' Name ')' Punctuation ' ' Text 'JCALL2' Name '(' Punctuation 'ReleaseStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation '*' Operator '$1' Name ')' Punctuation ';' Punctuation ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ' ' Text '{' Punctuation ' ' Text 'if' Keyword ' ' Text '(' Punctuation '*' Operator '$1' Name ')' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewStringUTF' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation '*' Operator '$1' Name ')' Punctuation ';' Punctuation ' ' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '"' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'V' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '/* primitive types by reference */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation '\n' Text '%' Operator '{' Punctuation ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '$input' Name ' ' Text '?' Operator ' ' Text 'true' Name.Builtin ' ' Text ':' Operator ' ' Text 'false' Name.Builtin ';' Punctuation ' \n ' Text '$1' Name ' ' Text '=' Operator ' ' Text '&' Operator 'temp' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ',' Punctuation 'warning' Name '=' Operator 'SWIGWARN_TYPEMAP_THREAD_UNSAFE_MSG' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text 'static' Keyword ' ' Text '$*1_ltype' Name ' ' Text 'temp' Name ';' Punctuation '\n' Text ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '$input' Name ' ' Text '?' Operator ' ' Text 'true' Name.Builtin ' ' Text ':' Operator ' ' Text 'false' Name.Builtin ';' Punctuation ' \n ' Text '$result' Name ' ' Text '=' Operator ' ' Text '&' Operator 'temp' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation '\n' Text '%' Operator '{' Punctuation ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ')' Punctuation '$input' Name ';' Punctuation ' \n ' Text '$1' Name ' ' Text '=' Operator ' ' Text '&' Operator 'temp' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ',' Punctuation 'warning' Name '=' Operator 'SWIGWARN_TYPEMAP_THREAD_UNSAFE_MSG' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text 'static' Keyword ' ' Text '$*1_ltype' Name ' ' Text 'temp' Name ';' Punctuation '\n' Text ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ')' Punctuation '$input' Name ';' Punctuation ' \n ' Text '$result' Name ' ' Text '=' Operator ' ' Text '&' Operator 'temp' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'Z' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jboolean)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'C' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jchar)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'B' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jbyte)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'S' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jshort)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'S' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jshort)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'I' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jint)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'I' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jint)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'J' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jlong)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'I' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jint)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'J' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jlong)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'J' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jlong)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'F' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jfloat)$1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'D' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$input = (jdouble)$1;' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation '\n' Text ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation '\n' Text ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jboolean' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jchar' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyte' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jshort' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jshort' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jint' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jint' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jlong' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jint' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jlong' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jlong' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jfloat' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jdouble' Name ')' Punctuation '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '/* const unsigned long long & */' Comment.Multiline '\n' Text '/* Similar to unsigned long long */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ')' Punctuation ' ' Text '{' Punctuation ' \n ' Text 'jclass' Name ' ' Text 'clazz' Name ';' Punctuation '\n' Text ' ' Text 'jmethodID' Name ' ' Text 'mid' Name ';' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ' ' Text 'ba' Name ';' Punctuation '\n' Text ' ' Text 'jbyte' Name '*' Operator ' ' Text 'bae' Name ';' Punctuation '\n' Text ' ' Text 'jsize' Name ' ' Text 'sz' Name ';' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ' ' Text 'i' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaNullPointerException' Name ',' Punctuation ' ' Text '"' Literal.String 'BigInteger null' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'clazz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'GetObjectClass' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'mid' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'GetMethodID' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text '"' Literal.String 'toByteArray' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String '()[B' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'ba' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyteArray' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'CallObjectMethod' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text 'mid' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'bae' Name ' ' Text '=' Operator ' ' Text 'JCALL2' Name '(' Punctuation 'GetByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'sz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'GetArrayLength' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '&' Operator 'temp' Name ';' Punctuation '\n' Text ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'for' Keyword '(' Punctuation 'i' Name '=' Operator '0' Literal.Number.Integer ';' Punctuation ' ' Text 'i' Name '<' Operator 'sz' Name ';' Punctuation ' ' Text 'i' Name '+' Operator '+' Operator ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'temp' Name ' ' Text '<' Operator '<' Operator ' ' Text '8' Literal.Number.Integer ')' Punctuation ' ' Text '|' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ')' Punctuation '(' Punctuation 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ')' Punctuation 'bae' Name '[' Punctuation 'i' Name ']' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'JCALL3' Name '(' Punctuation 'ReleaseByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text 'bae' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ',' Punctuation 'warning' Name '=' Operator 'SWIGWARN_TYPEMAP_THREAD_UNSAFE_MSG' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '{' Punctuation ' \n ' Text 'static' Keyword ' ' Text '$*1_ltype' Name ' ' Text 'temp' Name ';' Punctuation '\n' Text ' ' Text 'jclass' Name ' ' Text 'clazz' Name ';' Punctuation '\n' Text ' ' Text 'jmethodID' Name ' ' Text 'mid' Name ';' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ' ' Text 'ba' Name ';' Punctuation '\n' Text ' ' Text 'jbyte' Name '*' Operator ' ' Text 'bae' Name ';' Punctuation '\n' Text ' ' Text 'jsize' Name ' ' Text 'sz' Name ';' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ' ' Text 'i' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaNullPointerException' Name ',' Punctuation ' ' Text '"' Literal.String 'BigInteger null' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'clazz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'GetObjectClass' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'mid' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'GetMethodID' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text '"' Literal.String 'toByteArray' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String '()[B' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'ba' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyteArray' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'CallObjectMethod' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text 'mid' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'bae' Name ' ' Text '=' Operator ' ' Text 'JCALL2' Name '(' Punctuation 'GetByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'sz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'GetArrayLength' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '&' Operator 'temp' Name ';' Punctuation '\n' Text ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'for' Keyword '(' Punctuation 'i' Name '=' Operator '0' Literal.Number.Integer ';' Punctuation ' ' Text 'i' Name '<' Operator 'sz' Name ';' Punctuation ' ' Text 'i' Name '+' Operator '+' Operator ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'temp' Name ' ' Text '<' Operator '<' Operator ' ' Text '8' Literal.Number.Integer ')' Punctuation ' ' Text '|' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ')' Punctuation '(' Punctuation 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ')' Punctuation 'bae' Name '[' Punctuation 'i' Name ']' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'JCALL3' Name '(' Punctuation 'ReleaseByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text 'bae' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '{' Punctuation ' \n ' Text 'jbyteArray' Name ' ' Text 'ba' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewByteArray' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '9' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jbyte' Name '*' Operator ' ' Text 'bae' Name ' ' Text '=' Operator ' ' Text 'JCALL2' Name '(' Punctuation 'GetByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jclass' Name ' ' Text 'clazz' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'FindClass' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '"' Literal.String 'java/math/BigInteger' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jmethodID' Name ' ' Text 'mid' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'GetMethodID' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text '"' Literal.String '' Literal.String '"' Literal.String ',' Punctuation ' ' Text '"' Literal.String '([B)V' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'jobject' Name ' ' Text 'bigint' Name ';' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ' ' Text 'i' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'bae' Name '[' Punctuation '0' Literal.Number.Integer ']' Punctuation ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'for' Keyword '(' Punctuation 'i' Name '=' Operator '1' Literal.Number.Integer ';' Punctuation ' ' Text 'i' Name '<' Operator '9' Literal.Number.Integer ';' Punctuation ' ' Text 'i' Name '+' Operator '+' Operator ' ' Text ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'bae' Name '[' Punctuation 'i' Name ']' Punctuation ' ' Text '=' Operator ' ' Text '(' Punctuation 'jbyte' Name ')' Punctuation '(' Punctuation '*' Operator '$1' Name '>' Operator '>' Operator '8' Literal.Number.Integer '*' Operator '(' Punctuation '8' Literal.Number.Integer '-' Operator 'i' Name ')' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'JCALL3' Name '(' Punctuation 'ReleaseByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'ba' Name ',' Punctuation ' ' Text 'bae' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'bigint' Name ' ' Text '=' Operator ' ' Text 'JCALL3' Name '(' Punctuation 'NewObject' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'clazz' Name ',' Punctuation ' ' Text 'mid' Name ',' Punctuation ' ' Text 'ba' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text 'bigint' Name ';' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '/* Default handling. Object passed by value. Convert to a pointer */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation '$&1_type' Name ' ' Text 'argp' Name ')' Punctuation '\n' Text '%' Operator '{' Punctuation ' ' Text 'argp' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name '*' Operator ')' Punctuation '&' Operator '$input' Name ';' Punctuation ' \n ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator 'argp' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaNullPointerException' Name ',' Punctuation ' ' Text '"' Literal.String 'Attempt to dereference null $1_type' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '*' Operator 'argp' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation '$&1_type' Name ' ' Text 'argp' Name ')' Punctuation '\n' Text '%' Operator '{' Punctuation ' ' Text 'argp' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name '*' Operator ')' Punctuation '&' Operator '$input' Name ';' Punctuation ' \n ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator 'argp' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaNullPointerException' Name ',' Punctuation ' ' Text '"' Literal.String 'Unexpected null return for type $1_type' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '*' Operator 'argp' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' \n' Text '#' Comment.Preproc 'ifdef __cplusplus' Comment.Preproc '\n' Comment.Preproc '%' Operator '{' Punctuation ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name '*' Operator ')' Punctuation '&' Operator '$result' Name ' ' Text '=' Operator ' ' Text 'new' Keyword ' ' Text '$1_ltype' Name '(' Punctuation '(' Punctuation 'const' Keyword ' ' Text '$1_ltype' Name ' ' Text '&' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '#' Comment.Preproc 'else' Comment.Preproc '\n' Comment.Preproc '{' Punctuation '\n' Text ' ' Text '$&1_ltype' Name ' ' Text '$1ptr' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$&1_ltype' Name ')' Punctuation ' ' Text 'malloc' Name '(' Punctuation 'sizeof' Keyword '(' Punctuation '$1_ltype' Name ')' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'memmove' Name '(' Punctuation '$1ptr' Name ',' Punctuation ' ' Text '&' Operator '$1' Name ',' Punctuation ' ' Text 'sizeof' Keyword '(' Punctuation '$1_type' Name ')' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name '*' Operator ')' Punctuation '&' Operator '$result' Name ' ' Text '=' Operator ' ' Text '$1ptr' Name ';' Punctuation '\n' Text '}' Punctuation '\n' Text '#' Comment.Preproc 'endif' Comment.Preproc '\n' Comment.Preproc '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'L$packagepath/$&javaclassname;' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' \n' Text '%' Operator '{' Punctuation ' ' Text '$input' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text '*' Operator '(' Punctuation '(' Punctuation '$&1_ltype' Name '*' Operator ')' Punctuation '&' Operator '$input' Name ')' Punctuation ' ' Text '=' Operator ' ' Text '&' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '"' Literal.String 'new $&javaclassname($jniinput, false)' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '"' Literal.String '$&javaclassname.getCPtr($javacall)' Literal.String '"' Literal.String '\n' Text '\n' Text '/* Generic pointers and references */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ',' Punctuation ' ' Text 'fragment' Name '=' Operator '"' Literal.String 'SWIG_UnPackData' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '{' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator 'temp' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text 'JCALL2' Name '(' Punctuation 'GetStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator 'temp' Name ')' Punctuation ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'SWIG_UnpackData' Name '(' Punctuation 'temp' Name ',' Punctuation ' ' Text '(' Punctuation 'void' Keyword.Type ' ' Text '*' Operator ')' Punctuation '&' Operator '$1' Name ',' Punctuation ' ' Text 'sizeof' Keyword '(' Punctuation '$1' Name ')' Punctuation ')' Punctuation ';' Punctuation '\n' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ' ' Text '%' Operator '{' Punctuation ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$1' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaNullPointerException' Name ',' Punctuation ' ' Text '"' Literal.String '$1_type reference is null' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$result' Name ' ' Text '=' Operator ' ' Text '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation ' \n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ',' Punctuation ' ' Text 'fragment' Name '=' Operator '"' Literal.String 'SWIG_PackData' Literal.String '"' Literal.String ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'char' Keyword.Type ' ' Text 'buf' Name '[' Punctuation '128' Literal.Number.Integer ']' Punctuation ';' Punctuation '\n' Text ' ' Text 'char' Keyword.Type ' ' Text '*' Operator 'data' Name ' ' Text '=' Operator ' ' Text 'SWIG_PackData' Name '(' Punctuation 'buf' Name ',' Punctuation ' ' Text '(' Punctuation 'void' Keyword.Type ' ' Text '*' Operator ')' Punctuation '&' Operator '$1' Name ',' Punctuation ' ' Text 'sizeof' Keyword '(' Punctuation '$1' Name ')' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text '*' Operator 'data' Name ' ' Text '=' Operator ' ' Text "'" Literal.String.Char '\\0' Literal.String.Char "'" Literal.String.Char ';' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewStringUTF' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text 'buf' Name ')' Punctuation ';' Punctuation '\n' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$result' Name ' ' Text '=' Operator ' ' Text '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation ' \n\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ',' Punctuation ' ' Text 'warning' Name '=' Operator 'SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ',' Punctuation ' ' Text 'warning' Name '=' Operator 'SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation '\n' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'L$packagepath/$javaclassname;' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text '*' Operator '(' Punctuation '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ')' Punctuation ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation ' ' Text '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'L$packagepath/$javaclassname;' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation '\n' Text '%' Operator '{' Punctuation ' ' Text '*' Operator '(' Punctuation '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ')' Punctuation ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation ' ' Text '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ',' Punctuation ' ' Text 'warning' Name '=' Operator 'SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaNullPointerException' Name ',' Punctuation ' ' Text '"' Literal.String 'Unexpected null return for type $1_type' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'L$packagepath/$javaclassname;' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation ' ' Text '&' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String '($jniinput == 0) ? null : new $javaclassname($jniinput, false)' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ' ' Text '"' Literal.String 'new $javaclassname($jniinput, false)' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ' ' Text '"' Literal.String '$javaclassname.getCPtr($javacall)' Literal.String '"' Literal.String '\n' Text '\n' Text '/* Default array handling */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '%' Operator '{' Punctuation ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '%' Operator '{' Punctuation ' ' Text '*' Operator '(' Punctuation '$&1_ltype' Name ')' Punctuation '&' Operator '$result' Name ' ' Text '=' Operator ' ' Text '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation ' \n' Text '%typemap' Name.Function '(' Punctuation 'freearg' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '/* char arrays - treat as String */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'GetStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$1' Name ')' Punctuation ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation 'JCALL2' Name '(' Punctuation 'GetStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$result' Name ')' Punctuation ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String 'Ljava/lang/String;' Literal.String '"' Literal.String ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$input' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$1' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$input' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewStringUTF' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '!' Operator '$input' Name ')' Punctuation ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'argout' Name ')' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'freearg' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '{' Punctuation ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$1' Name ')' Punctuation ' ' Text 'JCALL2' Name '(' Punctuation 'ReleaseStringUTFChars' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ',' Punctuation ' ' Text 'noblock' Name '=' Operator '1' Literal.Number.Integer ')' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '{' Punctuation ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$1' Name ')' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text 'JCALL1' Name '(' Punctuation 'NewStringUTF' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '(' Punctuation 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '/* JNI types */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'jboolean' Name ',' Punctuation '\n' Text ' ' Text 'jchar' Name ',' Punctuation '\n' Text ' ' Text 'jbyte' Name ',' Punctuation '\n' Text ' ' Text 'jshort' Name ',' Punctuation '\n' Text ' ' Text 'jint' Name ',' Punctuation '\n' Text ' ' Text 'jlong' Name ',' Punctuation '\n' Text ' ' Text 'jfloat' Name ',' Punctuation '\n' Text ' ' Text 'jdouble' Name ',' Punctuation '\n' Text ' ' Text 'jstring' Name ',' Punctuation '\n' Text ' ' Text 'jobject' Name ',' Punctuation '\n' Text ' ' Text 'jbooleanArray' Name ',' Punctuation '\n' Text ' ' Text 'jcharArray' Name ',' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ',' Punctuation '\n' Text ' ' Text 'jshortArray' Name ',' Punctuation '\n' Text ' ' Text 'jintArray' Name ',' Punctuation '\n' Text ' ' Text 'jlongArray' Name ',' Punctuation '\n' Text ' ' Text 'jfloatArray' Name ',' Punctuation '\n' Text ' ' Text 'jdoubleArray' Name ',' Punctuation '\n' Text ' ' Text 'jobjectArray' Name '\n' Text '%' Operator '{' Punctuation ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorout' Name ')' Punctuation ' ' Text 'jboolean' Name ',' Punctuation '\n' Text ' ' Text 'jchar' Name ',' Punctuation '\n' Text ' ' Text 'jbyte' Name ',' Punctuation '\n' Text ' ' Text 'jshort' Name ',' Punctuation '\n' Text ' ' Text 'jint' Name ',' Punctuation '\n' Text ' ' Text 'jlong' Name ',' Punctuation '\n' Text ' ' Text 'jfloat' Name ',' Punctuation '\n' Text ' ' Text 'jdouble' Name ',' Punctuation '\n' Text ' ' Text 'jstring' Name ',' Punctuation '\n' Text ' ' Text 'jobject' Name ',' Punctuation '\n' Text ' ' Text 'jbooleanArray' Name ',' Punctuation '\n' Text ' ' Text 'jcharArray' Name ',' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ',' Punctuation '\n' Text ' ' Text 'jshortArray' Name ',' Punctuation '\n' Text ' ' Text 'jintArray' Name ',' Punctuation '\n' Text ' ' Text 'jlongArray' Name ',' Punctuation '\n' Text ' ' Text 'jfloatArray' Name ',' Punctuation '\n' Text ' ' Text 'jdoubleArray' Name ',' Punctuation '\n' Text ' ' Text 'jobjectArray' Name '\n' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '$input' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'jboolean' Name ',' Punctuation '\n' Text ' ' Text 'jchar' Name ',' Punctuation '\n' Text ' ' Text 'jbyte' Name ',' Punctuation '\n' Text ' ' Text 'jshort' Name ',' Punctuation '\n' Text ' ' Text 'jint' Name ',' Punctuation '\n' Text ' ' Text 'jlong' Name ',' Punctuation '\n' Text ' ' Text 'jfloat' Name ',' Punctuation '\n' Text ' ' Text 'jdouble' Name ',' Punctuation '\n' Text ' ' Text 'jstring' Name ',' Punctuation '\n' Text ' ' Text 'jobject' Name ',' Punctuation '\n' Text ' ' Text 'jbooleanArray' Name ',' Punctuation '\n' Text ' ' Text 'jcharArray' Name ',' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ',' Punctuation '\n' Text ' ' Text 'jshortArray' Name ',' Punctuation '\n' Text ' ' Text 'jintArray' Name ',' Punctuation '\n' Text ' ' Text 'jlongArray' Name ',' Punctuation '\n' Text ' ' Text 'jfloatArray' Name ',' Punctuation '\n' Text ' ' Text 'jdoubleArray' Name ',' Punctuation '\n' Text ' ' Text 'jobjectArray' Name '\n' Text '%' Operator '{' Punctuation ' ' Text '$result' Name ' ' Text '=' Operator ' ' Text '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'Z' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jboolean' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'C' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jchar' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'B' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jbyte' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'S' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jshort' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'I' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jint' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'J' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jlong' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'F' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jfloat' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'D' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jdouble' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'Ljava/lang/String;' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jstring' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String 'Ljava/lang/Object;' Literal.String '"' Literal.String ',' Punctuation 'nouse' Name '=' Operator '"' Literal.String '1' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jobject' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[Z' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jbooleanArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[C' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jcharArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[B' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jbyteArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[S' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jshortArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[I' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jintArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[J' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jlongArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[F' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jfloatArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[D' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jdoubleArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation 'descriptor' Name '=' Operator '"' Literal.String '[Ljava/lang/Object;' Literal.String '"' Literal.String ',' Punctuation 'nouse' Name '=' Operator '"' Literal.String '1' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'jobjectArray' Name ' ' Text '"' Literal.String '$input = $1;' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorin' Name ')' Punctuation ' ' Text 'jboolean' Name ',' Punctuation '\n' Text ' ' Text 'jchar' Name ',' Punctuation '\n' Text ' ' Text 'jbyte' Name ',' Punctuation '\n' Text ' ' Text 'jshort' Name ',' Punctuation '\n' Text ' ' Text 'jint' Name ',' Punctuation '\n' Text ' ' Text 'jlong' Name ',' Punctuation '\n' Text ' ' Text 'jfloat' Name ',' Punctuation '\n' Text ' ' Text 'jdouble' Name ',' Punctuation '\n' Text ' ' Text 'jstring' Name ',' Punctuation '\n' Text ' ' Text 'jobject' Name ',' Punctuation '\n' Text ' ' Text 'jbooleanArray' Name ',' Punctuation '\n' Text ' ' Text 'jcharArray' Name ',' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ',' Punctuation '\n' Text ' ' Text 'jshortArray' Name ',' Punctuation '\n' Text ' ' Text 'jintArray' Name ',' Punctuation '\n' Text ' ' Text 'jlongArray' Name ',' Punctuation '\n' Text ' ' Text 'jfloatArray' Name ',' Punctuation '\n' Text ' ' Text 'jdoubleArray' Name ',' Punctuation '\n' Text ' ' Text 'jobjectArray' Name '\n' Text ' ' Text '"' Literal.String '$jniinput' Literal.String '"' Literal.String '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadirectorout' Name ')' Punctuation ' ' Text 'jboolean' Name ',' Punctuation '\n' Text ' ' Text 'jchar' Name ',' Punctuation '\n' Text ' ' Text 'jbyte' Name ',' Punctuation '\n' Text ' ' Text 'jshort' Name ',' Punctuation '\n' Text ' ' Text 'jint' Name ',' Punctuation '\n' Text ' ' Text 'jlong' Name ',' Punctuation '\n' Text ' ' Text 'jfloat' Name ',' Punctuation '\n' Text ' ' Text 'jdouble' Name ',' Punctuation '\n' Text ' ' Text 'jstring' Name ',' Punctuation '\n' Text ' ' Text 'jobject' Name ',' Punctuation '\n' Text ' ' Text 'jbooleanArray' Name ',' Punctuation '\n' Text ' ' Text 'jcharArray' Name ',' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ',' Punctuation '\n' Text ' ' Text 'jshortArray' Name ',' Punctuation '\n' Text ' ' Text 'jintArray' Name ',' Punctuation '\n' Text ' ' Text 'jlongArray' Name ',' Punctuation '\n' Text ' ' Text 'jfloatArray' Name ',' Punctuation '\n' Text ' ' Text 'jdoubleArray' Name ',' Punctuation '\n' Text ' ' Text 'jobjectArray' Name '\n' Text ' ' Text '"' Literal.String '$javacall' Literal.String '"' Literal.String '\n' Text '\n' Text '/* Typecheck typemaps - The purpose of these is merely to issue a warning for overloaded C++ functions \n * that cannot be overloaded in Java as more than one C++ type maps to a single Java type */' Comment.Multiline '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_BOOL' Name ')' Punctuation ' ' Text '/* Java boolean */' Comment.Multiline '\n' Text ' ' Text 'jboolean' Name ',' Punctuation '\n' Text ' ' Text 'bool' Keyword.Type ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_CHAR' Name ')' Punctuation ' ' Text '/* Java char */' Comment.Multiline '\n' Text ' ' Text 'jchar' Name ',' Punctuation '\n' Text ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT8' Name ')' Punctuation ' ' Text '/* Java byte */' Comment.Multiline '\n' Text ' ' Text 'jbyte' Name ',' Punctuation '\n' Text ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT16' Name ')' Punctuation ' ' Text '/* Java short */' Comment.Multiline '\n' Text ' ' Text 'jshort' Name ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' \n ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT32' Name ')' Punctuation ' ' Text '/* Java int */' Comment.Multiline '\n' Text ' ' Text 'jint' Name ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT64' Name ')' Punctuation ' ' Text '/* Java long */' Comment.Multiline '\n' Text ' ' Text 'jlong' Name ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation ' \n ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT128' Name ')' Punctuation ' ' Text '/* Java BigInteger */' Comment.Multiline '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_FLOAT' Name ')' Punctuation ' ' Text '/* Java float */' Comment.Multiline '\n' Text ' ' Text 'jfloat' Name ',' Punctuation '\n' Text ' ' Text 'float' Keyword.Type ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_DOUBLE' Name ')' Punctuation ' ' Text '/* Java double */' Comment.Multiline '\n' Text ' ' Text 'jdouble' Name ',' Punctuation '\n' Text ' ' Text 'double' Keyword.Type ',' Punctuation '\n' Text ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_STRING' Name ')' Punctuation ' ' Text '/* Java String */' Comment.Multiline '\n' Text ' ' Text 'jstring' Name ',' Punctuation '\n' Text ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ',' Punctuation '\n' Text ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ',' Punctuation '\n' Text ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation '\n' Text ' ' Text 'char' Keyword.Type ' ' Text '[' Punctuation ']' Punctuation '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_BOOL_ARRAY' Name ')' Punctuation ' ' Text '/* Java boolean[] */' Comment.Multiline '\n' Text ' ' Text 'jbooleanArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_CHAR_ARRAY' Name ')' Punctuation ' ' Text '/* Java char[] */' Comment.Multiline '\n' Text ' ' Text 'jcharArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT8_ARRAY' Name ')' Punctuation ' ' Text '/* Java byte[] */' Comment.Multiline '\n' Text ' ' Text 'jbyteArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT16_ARRAY' Name ')' Punctuation ' ' Text '/* Java short[] */' Comment.Multiline '\n' Text ' ' Text 'jshortArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT32_ARRAY' Name ')' Punctuation ' ' Text '/* Java int[] */' Comment.Multiline '\n' Text ' ' Text 'jintArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_INT64_ARRAY' Name ')' Punctuation ' ' Text '/* Java long[] */' Comment.Multiline '\n' Text ' ' Text 'jlongArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_FLOAT_ARRAY' Name ')' Punctuation ' ' Text '/* Java float[] */' Comment.Multiline '\n' Text ' ' Text 'jfloatArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_DOUBLE_ARRAY' Name ')' Punctuation ' ' Text '/* Java double[] */' Comment.Multiline '\n' Text ' ' Text 'jdoubleArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_OBJECT_ARRAY' Name ')' Punctuation ' ' Text '/* Java jobject[] */' Comment.Multiline '\n' Text ' ' Text 'jobjectArray' Name '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '%typecheck' Name.Function '(' Punctuation 'SWIG_TYPECHECK_POINTER' Name ')' Punctuation ' ' Text '/* Default */' Comment.Multiline '\n' Text ' ' Text 'SWIGTYPE' Name ',' Punctuation ' \n ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' \n ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ',' Punctuation ' \n ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword '&' Operator ',' Punctuation ' \n ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ',' Punctuation '\n' Text ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation '\n' Text ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '\n' Text '/* Exception handling */' Comment.Multiline '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'throws' Keyword ')' Punctuation ' ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'short' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' \n ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type '\n' Text '%' Operator '{' Punctuation ' ' Text 'char' Keyword.Type ' ' Text 'error_msg' Name '[' Punctuation '256' Literal.Number.Integer ']' Punctuation ';' Punctuation '\n' Text ' ' Text 'sprintf' Name '(' Punctuation 'error_msg' Name ',' Punctuation ' ' Text '"' Literal.String 'C++ $1_type exception thrown, value: %d' Literal.String '"' Literal.String ',' Punctuation ' ' Text '$1' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaRuntimeException' Name ',' Punctuation ' ' Text 'error_msg' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'throws' Keyword ')' Punctuation ' ' Text 'SWIGTYPE' Name ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation 'ANY' Name ']' Punctuation '\n' Text '%' Operator '{' Punctuation ' ' Text '(' Punctuation 'void' Keyword.Type ')' Punctuation '$1' Name ';' Punctuation '\n' Text ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaRuntimeException' Name ',' Punctuation ' ' Text '"' Literal.String 'C++ $1_type exception thrown' Literal.String '"' Literal.String ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'throws' Keyword ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text 'SWIG_JavaThrowException' Name '(' Punctuation 'jenv' Name ',' Punctuation ' ' Text 'SWIG_JavaRuntimeException' Name ',' Punctuation ' ' Text '$1' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$null' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '\n' Text '/* Typemaps for code generation in proxy classes and Java type wrapper classes */' Comment.Multiline '\n' Text '\n' Text '/* The javain typemap is used for converting function parameter types from the type \n * used in the proxy, module or type wrapper class to the type used in the JNI class. */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'javain' Name ')' Punctuation ' ' Text 'bool' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'float' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'double' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator '\n' Text ' ' Text '"' Literal.String '$javainput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javain' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ',' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String '$javainput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javain' Name ')' Punctuation ' ' Text 'jboolean' Name ',' Punctuation '\n' Text ' ' Text 'jchar' Name ',' Punctuation '\n' Text ' ' Text 'jbyte' Name ',' Punctuation '\n' Text ' ' Text 'jshort' Name ',' Punctuation '\n' Text ' ' Text 'jint' Name ',' Punctuation '\n' Text ' ' Text 'jlong' Name ',' Punctuation '\n' Text ' ' Text 'jfloat' Name ',' Punctuation '\n' Text ' ' Text 'jdouble' Name ',' Punctuation '\n' Text ' ' Text 'jstring' Name ',' Punctuation '\n' Text ' ' Text 'jobject' Name ',' Punctuation '\n' Text ' ' Text 'jbooleanArray' Name ',' Punctuation '\n' Text ' ' Text 'jcharArray' Name ',' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ',' Punctuation '\n' Text ' ' Text 'jshortArray' Name ',' Punctuation '\n' Text ' ' Text 'jintArray' Name ',' Punctuation '\n' Text ' ' Text 'jlongArray' Name ',' Punctuation '\n' Text ' ' Text 'jfloatArray' Name ',' Punctuation '\n' Text ' ' Text 'jdoubleArray' Name ',' Punctuation '\n' Text ' ' Text 'jobjectArray' Name '\n' Text ' ' Text '"' Literal.String '$javainput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javain' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '"' Literal.String '$&javaclassname.getCPtr($javainput)' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javain' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '"' Literal.String '$javaclassname.getCPtr($javainput)' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javain' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String '$javaclassname.getCMemberPtr($javainput)' Literal.String '"' Literal.String '\n' Text '\n' Text '/* The javaout typemap is used for converting function return types from the return type\n * used in the JNI class to the type returned by the proxy, module or type wrapper class. */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'bool' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'bool' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'signed' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'char' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'short' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'int' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'float' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'float' Keyword.Type ' ' Text '&' Operator ',' Punctuation '\n' Text ' ' Text 'double' Keyword.Type ',' Punctuation ' ' Text 'const' Keyword ' ' Text 'double' Keyword.Type ' ' Text '&' Operator ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator ',' Punctuation ' ' Text 'char' Keyword.Type ' ' Text '*' Operator '&' Operator ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation 'ANY' Name ']' Punctuation ',' Punctuation ' ' Text 'char' Keyword.Type '[' Punctuation ']' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'jboolean' Name ',' Punctuation '\n' Text ' ' Text 'jchar' Name ',' Punctuation '\n' Text ' ' Text 'jbyte' Name ',' Punctuation '\n' Text ' ' Text 'jshort' Name ',' Punctuation '\n' Text ' ' Text 'jint' Name ',' Punctuation '\n' Text ' ' Text 'jlong' Name ',' Punctuation '\n' Text ' ' Text 'jfloat' Name ',' Punctuation '\n' Text ' ' Text 'jdouble' Name ',' Punctuation '\n' Text ' ' Text 'jstring' Name ',' Punctuation '\n' Text ' ' Text 'jobject' Name ',' Punctuation '\n' Text ' ' Text 'jbooleanArray' Name ',' Punctuation '\n' Text ' ' Text 'jcharArray' Name ',' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ',' Punctuation '\n' Text ' ' Text 'jshortArray' Name ',' Punctuation '\n' Text ' ' Text 'jintArray' Name ',' Punctuation '\n' Text ' ' Text 'jlongArray' Name ',' Punctuation '\n' Text ' ' Text 'jfloatArray' Name ',' Punctuation '\n' Text ' ' Text 'jdoubleArray' Name ',' Punctuation '\n' Text ' ' Text 'jobjectArray' Name ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'void' Keyword.Type ' ' Text '{' Punctuation '\n' Text ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text 'new' Keyword ' ' Text '$&javaclassname' Name '(' Punctuation '$jnicall' Name ',' Punctuation ' ' Text 'true' Name.Builtin ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text 'new' Keyword ' ' Text '$javaclassname' Name '(' Punctuation '$jnicall' Name ',' Punctuation ' ' Text '$owner' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'long' Keyword.Type ' ' Text 'cPtr' Name ' ' Text '=' Operator ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '(' Punctuation 'cPtr' Name ' ' Text '=' Operator '=' Operator ' ' Text '0' Literal.Number.Integer ')' Punctuation ' ' Text '?' Operator ' ' Text 'null' Name.Label ' ' Text ':' Punctuation ' ' Text 'new' Keyword ' ' Text '$javaclassname' Name '(' Punctuation 'cPtr' Name ',' Punctuation ' ' Text '$owner' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'String' Name ' ' Text 'cMemberPtr' Name ' ' Text '=' Operator ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '(' Punctuation 'cMemberPtr' Name ' ' Text '=' Operator '=' Operator ' ' Text 'null' Name ')' Punctuation ' ' Text '?' Operator ' ' Text 'null' Name.Label ' ' Text ':' Punctuation ' ' Text 'new' Keyword ' ' Text '$javaclassname' Name '(' Punctuation 'cMemberPtr' Name ',' Punctuation ' ' Text '$owner' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text '/* Pointer reference typemaps */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword '&' Operator ' ' Text '"' Literal.String 'jlong' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword '&' Operator ' ' Text '"' Literal.String 'long' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword '&' Operator ' ' Text '"' Literal.String '$*javaclassname' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javain' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword '&' Operator ' ' Text '"' Literal.String '$*javaclassname.getCPtr($javainput)' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javaout' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword '&' Operator ' ' Text '{' Punctuation '\n' Text ' ' Text 'long' Keyword.Type ' ' Text 'cPtr' Name ' ' Text '=' Operator ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '(' Punctuation 'cPtr' Name ' ' Text '=' Operator '=' Operator ' ' Text '0' Literal.Number.Integer ')' Punctuation ' ' Text '?' Operator ' ' Text 'null' Name.Label ' ' Text ':' Punctuation ' ' Text 'new' Keyword ' ' Text '$*javaclassname' Name '(' Punctuation 'cPtr' Name ',' Punctuation ' ' Text '$owner' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword '&' Operator ' ' Text '(' Punctuation '$*1_ltype' Name ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ')' Punctuation '\n' Text '%' Operator '{' Punctuation ' ' Text 'temp' Name ' ' Text '=' Operator ' ' Text '*' Operator '(' Punctuation '$1_ltype' Name ')' Punctuation '&' Operator '$input' Name ';' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '(' Punctuation '$1_ltype' Name ')' Punctuation '&' Operator 'temp' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'out' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword '&' Operator '\n' Text '%' Operator '{' Punctuation ' ' Text '*' Operator '(' Punctuation '$1_ltype' Name ')' Punctuation '&' Operator '$result' Name ' ' Text '=' Operator ' ' Text '*' Operator '$1' Name ';' Punctuation ' ' Text '%' Operator '}' Punctuation ' \n\n' Text '/* Typemaps used for the generation of proxy and type wrapper class code */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'javabase' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javaclassmodifiers' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String 'public class' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javacode' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javaimports' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javainterfaces' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '[' Punctuation ']' Punctuation ',' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '"' Literal.String '"' Literal.String '\n' Text '\n' Text '/* javabody typemaps */' Comment.Multiline '\n' Text '\n' Text '%define' Name.Function ' ' Text 'SWIG_JAVABODY_METHODS' Name '(' Punctuation 'PTRCTOR_VISIBILITY' Name ',' Punctuation ' ' Text 'CPTR_VISIBILITY' Name ',' Punctuation ' ' Text 'TYPE' Name '.' Punctuation '.' Punctuation '.' Punctuation ')' Punctuation ' ' Text 'SWIG_JAVABODY_PROXY' Name '(' Punctuation 'PTRCTOR_VISIBILITY' Name ',' Punctuation ' ' Text 'CPTR_VISIBILITY' Name ',' Punctuation ' ' Text 'TYPE' Name ')' Punctuation ' ' Text '%enddef' Name.Function ' ' Text '// legacy name\n' Comment.Single '\n' Text '%define' Name.Function ' ' Text 'SWIG_JAVABODY_PROXY' Name '(' Punctuation 'PTRCTOR_VISIBILITY' Name ',' Punctuation ' ' Text 'CPTR_VISIBILITY' Name ',' Punctuation ' ' Text 'TYPE' Name '.' Punctuation '.' Punctuation '.' Punctuation ')' Punctuation '\n' Text '// Base proxy classes\n' Comment.Single '%typemap' Name.Function '(' Punctuation 'javabody' Name ')' Punctuation ' ' Text 'TYPE' Name ' ' Text '%' Operator '{' Punctuation '\n' Text ' ' Text 'private' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'swigCPtr' Name ';' Punctuation '\n' Text ' ' Text 'protected' Keyword ' ' Text 'boolean' Name ' ' Text 'swigCMemOwn' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'PTRCTOR_VISIBILITY' Name ' ' Text '$javaclassname' Name.Function '(' Punctuation 'long' Keyword.Type ' ' Text 'cPtr' Name ',' Punctuation ' ' Text 'boolean' Name ' ' Text 'cMemoryOwn' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCMemOwn' Name ' ' Text '=' Operator ' ' Text 'cMemoryOwn' Name ';' Punctuation '\n' Text ' ' Text 'swigCPtr' Name ' ' Text '=' Operator ' ' Text 'cPtr' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'CPTR_VISIBILITY' Name ' ' Text 'static' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'getCPtr' Name '(' Punctuation '$javaclassname' Name ' ' Text 'obj' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '(' Punctuation 'obj' Name ' ' Text '=' Operator '=' Operator ' ' Text 'null' Name ')' Punctuation ' ' Text '?' Operator ' ' Text '0' Literal.Number.Integer ' ' Text ':' Operator ' ' Text 'obj' Name '.' Punctuation 'swigCPtr' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '// Derived proxy classes\n' Comment.Single '%typemap' Name.Function '(' Punctuation 'javabody_derived' Name ')' Punctuation ' ' Text 'TYPE' Name ' ' Text '%' Operator '{' Punctuation '\n' Text ' ' Text 'private' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'swigCPtr' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'PTRCTOR_VISIBILITY' Name ' ' Text '$javaclassname' Name.Function '(' Punctuation 'long' Keyword.Type ' ' Text 'cPtr' Name ',' Punctuation ' ' Text 'boolean' Name ' ' Text 'cMemoryOwn' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'super' Name '(' Punctuation '$imclassname' Name '.' Punctuation '$javaclazznameSWIGUpcast' Name '(' Punctuation 'cPtr' Name ')' Punctuation ',' Punctuation ' ' Text 'cMemoryOwn' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text 'swigCPtr' Name ' ' Text '=' Operator ' ' Text 'cPtr' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'CPTR_VISIBILITY' Name ' ' Text 'static' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'getCPtr' Name '(' Punctuation '$javaclassname' Name ' ' Text 'obj' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '(' Punctuation 'obj' Name ' ' Text '=' Operator '=' Operator ' ' Text 'null' Name ')' Punctuation ' ' Text '?' Operator ' ' Text '0' Literal.Number.Integer ' ' Text ':' Operator ' ' Text 'obj' Name '.' Punctuation 'swigCPtr' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%' Operator '}' Punctuation '\n' Text '%enddef' Name.Function '\n' Text '\n' Text '%define' Name.Function ' ' Text 'SWIG_JAVABODY_TYPEWRAPPER' Name '(' Punctuation 'PTRCTOR_VISIBILITY' Name ',' Punctuation ' ' Text 'DEFAULTCTOR_VISIBILITY' Name ',' Punctuation ' ' Text 'CPTR_VISIBILITY' Name ',' Punctuation ' ' Text 'TYPE' Name '.' Punctuation '.' Punctuation '.' Punctuation ')' Punctuation '\n' Text '// Typewrapper classes\n' Comment.Single '%typemap' Name.Function '(' Punctuation 'javabody' Name ')' Punctuation ' ' Text 'TYPE' Name ' ' Text '*' Operator ',' Punctuation ' ' Text 'TYPE' Name ' ' Text '&' Operator ',' Punctuation ' ' Text 'TYPE' Name ' ' Text '[' Punctuation ']' Punctuation ' ' Text '%' Operator '{' Punctuation '\n' Text ' ' Text 'private' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'swigCPtr' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'PTRCTOR_VISIBILITY' Name ' ' Text '$javaclassname' Name.Function '(' Punctuation 'long' Keyword.Type ' ' Text 'cPtr' Name ',' Punctuation ' ' Text 'boolean' Name ' ' Text 'futureUse' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCPtr' Name ' ' Text '=' Operator ' ' Text 'cPtr' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'DEFAULTCTOR_VISIBILITY' Name ' ' Text '$javaclassname' Name.Function '(' Punctuation ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCPtr' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'CPTR_VISIBILITY' Name ' ' Text 'static' Keyword ' ' Text 'long' Keyword.Type ' ' Text 'getCPtr' Name '(' Punctuation '$javaclassname' Name ' ' Text 'obj' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text '(' Punctuation 'obj' Name ' ' Text '=' Operator '=' Operator ' ' Text 'null' Name ')' Punctuation ' ' Text '?' Operator ' ' Text '0' Literal.Number.Integer ' ' Text ':' Operator ' ' Text 'obj' Name '.' Punctuation 'swigCPtr' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javabody' Name ')' Punctuation ' ' Text 'TYPE' Name ' ' Text '(' Punctuation 'CLASS' Name ':' Operator ':' Operator '*' Operator ')' Punctuation ' ' Text '%' Operator '{' Punctuation '\n' Text ' ' Text 'private' Keyword ' ' Text 'String' Name ' ' Text 'swigCMemberPtr' Name ';' Punctuation '\n' Text '\n' Text ' ' Text 'PTRCTOR_VISIBILITY' Name ' ' Text '$javaclassname' Name.Function '(' Punctuation 'String' Name ' ' Text 'cMemberPtr' Name ',' Punctuation ' ' Text 'boolean' Name ' ' Text 'futureUse' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCMemberPtr' Name ' ' Text '=' Operator ' ' Text 'cMemberPtr' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'DEFAULTCTOR_VISIBILITY' Name ' ' Text '$javaclassname' Name.Function '(' Punctuation ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCMemberPtr' Name ' ' Text '=' Operator ' ' Text 'null' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text ' ' Text 'CPTR_VISIBILITY' Name ' ' Text 'static' Keyword ' ' Text 'String' Name ' ' Text 'getCMemberPtr' Name '(' Punctuation '$javaclassname' Name ' ' Text 'obj' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'return' Keyword ' ' Text 'obj' Name '.' Punctuation 'swigCMemberPtr' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%' Operator '}' Punctuation '\n' Text '%enddef' Name.Function '\n' Text '\n' Text '/* Set the default javabody typemaps to use protected visibility.\n Use the macros to change to public if using multiple modules. */' Comment.Multiline '\n' Text 'SWIG_JAVABODY_PROXY' Name '(' Punctuation 'protected' Keyword ',' Punctuation ' ' Text 'protected' Keyword ',' Punctuation ' ' Text 'SWIGTYPE' Name ')' Punctuation '\n' Text 'SWIG_JAVABODY_TYPEWRAPPER' Name '(' Punctuation 'protected' Keyword ',' Punctuation ' ' Text 'protected' Keyword ',' Punctuation ' ' Text 'protected' Keyword ',' Punctuation ' ' Text 'SWIGTYPE' Name ')' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javafinalize' Name ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '%' Operator '{' Punctuation '\n' Text ' ' Text 'protected' Keyword ' ' Text 'void' Keyword.Type ' ' Text 'finalize' Name '(' Punctuation ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'delete' Keyword '(' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%' Operator '}' Punctuation '\n' Text '\n' Text "/*\n * Java constructor typemaps:\n *\n * The javaconstruct typemap is inserted when a proxy class's constructor is generated.\n * This typemap allows control over what code is executed in the constructor as\n * well as specifying who owns the underlying C/C++ object. Normally, Java has\n * ownership and the underlying C/C++ object is deallocated when the Java object\n * is finalized (swigCMemOwn is true.) If swigCMemOwn is false, C/C++ is\n * ultimately responsible for deallocating the underlying object's memory.\n *\n * The SWIG_PROXY_CONSTRUCTOR macro defines the javaconstruct typemap for a proxy\n * class for a particular TYPENAME. OWNERSHIP is passed as the value of\n * swigCMemOwn to the pointer constructor method. WEAKREF determines which kind\n * of Java object reference will be used by the C++ director class (WeakGlobalRef\n * vs. GlobalRef.)\n *\n * The SWIG_DIRECTOR_OWNED macro sets the ownership of director-based proxy\n * classes and the weak reference flag to false, meaning that the underlying C++\n * object will be reclaimed by C++.\n */" Comment.Multiline '\n' Text '\n' Text '%define' Name.Function ' ' Text 'SWIG_PROXY_CONSTRUCTOR' Name '(' Punctuation 'OWNERSHIP' Name ',' Punctuation ' ' Text 'WEAKREF' Name ',' Punctuation ' ' Text 'TYPENAME' Name '.' Punctuation '.' Punctuation '.' Punctuation ')' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'javaconstruct' Name ',' Punctuation 'directorconnect' Name '=' Operator '"' Literal.String '\\n' Literal.String.Escape ' $imclassname.$javaclazznamedirector_connect(this, swigCPtr, swigCMemOwn, WEAKREF);' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'TYPENAME' Name ' ' Text '{' Punctuation '\n' Text ' ' Text 'this' Keyword '(' Punctuation '$imcall' Name ',' Punctuation ' ' Text 'OWNERSHIP' Name ')' Punctuation ';' Punctuation '$directorconnect' Name '\n' Text ' ' Text '}' Punctuation '\n' Text '%enddef' Name.Function '\n' Text '\n' Text '%define' Name.Function ' ' Text 'SWIG_DIRECTOR_OWNED' Name '(' Punctuation 'TYPENAME' Name '.' Punctuation '.' Punctuation '.' Punctuation ')' Punctuation '\n' Text 'SWIG_PROXY_CONSTRUCTOR' Name '(' Punctuation 'true' Name.Builtin ',' Punctuation ' ' Text 'false' Name.Builtin ',' Punctuation ' ' Text 'TYPENAME' Name ')' Punctuation '\n' Text '%enddef' Name.Function '\n' Text '\n' Text '// Set the default for SWIGTYPE: Java owns the C/C++ object.\n' Comment.Single 'SWIG_PROXY_CONSTRUCTOR' Name '(' Punctuation 'true' Name.Builtin ',' Punctuation ' ' Text 'true' Name.Builtin ',' Punctuation ' ' Text 'SWIGTYPE' Name ')' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadestruct' Name ',' Punctuation ' ' Text 'methodname' Name '=' Operator '"' Literal.String 'delete' Literal.String '"' Literal.String ',' Punctuation ' ' Text 'methodmodifiers' Name '=' Operator '"' Literal.String 'public synchronized' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '{' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation 'swigCPtr' Name ' ' Text '!' Operator '=' Operator ' ' Text '0' Literal.Number.Integer ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation 'swigCMemOwn' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCMemOwn' Name ' ' Text '=' Operator ' ' Text 'false' Name.Builtin ';' Punctuation '\n' Text ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'swigCPtr' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'javadestruct_derived' Name ',' Punctuation ' ' Text 'methodname' Name '=' Operator '"' Literal.String 'delete' Literal.String '"' Literal.String ',' Punctuation ' ' Text 'methodmodifiers' Name '=' Operator '"' Literal.String 'public synchronized' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '{' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation 'swigCPtr' Name ' ' Text '!' Operator '=' Operator ' ' Text '0' Literal.Number.Integer ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation 'swigCMemOwn' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCMemOwn' Name ' ' Text '=' Operator ' ' Text 'false' Name.Builtin ';' Punctuation '\n' Text ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'swigCPtr' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text ' ' Text 'super' Name '.' Punctuation 'delete' Keyword '(' Punctuation ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directordisconnect' Name ',' Punctuation ' ' Text 'methodname' Name '=' Operator '"' Literal.String 'swigDirectorDisconnect' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '%' Operator '{' Punctuation '\n' Text ' ' Text 'protected' Keyword ' ' Text 'void' Keyword.Type ' ' Text '$methodname' Name '(' Punctuation ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCMemOwn' Name ' ' Text '=' Operator ' ' Text 'false' Name.Builtin ';' Punctuation '\n' Text ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorowner_release' Name ',' Punctuation ' ' Text 'methodname' Name '=' Operator '"' Literal.String 'swigReleaseOwnership' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '%' Operator '{' Punctuation '\n' Text ' ' Text 'public' Keyword ' ' Text 'void' Keyword.Type ' ' Text '$methodname' Name '(' Punctuation ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCMemOwn' Name ' ' Text '=' Operator ' ' Text 'false' Name.Builtin ';' Punctuation '\n' Text ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '%typemap' Name.Function '(' Punctuation 'directorowner_take' Name ',' Punctuation ' ' Text 'methodname' Name '=' Operator '"' Literal.String 'swigTakeOwnership' Literal.String '"' Literal.String ')' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '%' Operator '{' Punctuation '\n' Text ' ' Text 'public' Keyword ' ' Text 'void' Keyword.Type ' ' Text '$methodname' Name '(' Punctuation ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'swigCMemOwn' Name ' ' Text '=' Operator ' ' Text 'true' Name.Builtin ';' Punctuation '\n' Text ' ' Text '$jnicall' Name ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '%' Operator '}' Punctuation '\n' Text '\n' Text '/* Java specific directives */' Comment.Multiline '\n' Text '#' Comment.Preproc 'define %javaconst(flag) %feature("java:const","flag")' Comment.Preproc '\n' Comment.Preproc '#' Comment.Preproc 'define %javaconstvalue(value) %feature("java:constvalue",value)' Comment.Preproc '\n' Comment.Preproc '#' Comment.Preproc 'define %javaenum(wrapapproach) %feature("java:enum","wrapapproach")' Comment.Preproc '\n' Comment.Preproc '#' Comment.Preproc 'define %javamethodmodifiers %feature("java:methodmodifiers")' Comment.Preproc '\n' Comment.Preproc '#' Comment.Preproc 'define %javaexception(exceptionclasses) %feature("except",throws=exceptionclasses)' Comment.Preproc '\n' Comment.Preproc '#' Comment.Preproc 'define %nojavaexception %feature("except","0",throws="")' Comment.Preproc '\n' Comment.Preproc '#' Comment.Preproc 'define %clearjavaexception %feature("except","",throws="")' Comment.Preproc '\n' Comment.Preproc '\n' Text '%pragma' Name.Function '(' Punctuation 'java' Name ')' Punctuation ' ' Text 'jniclassclassmodifiers' Name '=' Operator '"' Literal.String 'public class' Literal.String '"' Literal.String '\n' Text '%pragma' Name.Function '(' Punctuation 'java' Name ')' Punctuation ' ' Text 'moduleclassmodifiers' Name '=' Operator '"' Literal.String 'public class' Literal.String '"' Literal.String '\n' Text '\n' Text '/* Some ANSI C typemaps */' Comment.Multiline '\n' Text '\n' Text '%apply' Name.Function ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '{' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text '}' Punctuation ';' Punctuation '\n' Text '%apply' Name.Function ' ' Text 'const' Keyword ' ' Text 'unsigned' Keyword.Type ' ' Text 'long' Keyword.Type ' ' Text '&' Operator ' ' Text '{' Punctuation ' ' Text 'const' Keyword ' ' Text 'size_t' Keyword.Type ' ' Text '&' Operator ' ' Text '}' Punctuation ';' Punctuation '\n' Text '\n' Text '/* Array reference typemaps */' Comment.Multiline '\n' Text '%apply' Name.Function ' ' Text 'SWIGTYPE' Name ' ' Text '&' Operator ' ' Text '{' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '(' Punctuation '(' Punctuation '&' Operator ')' Punctuation '[' Punctuation 'ANY' Name ']' Punctuation ')' Punctuation ' ' Text '}' Punctuation '\n' Text '\n' Text '/* const pointers */' Comment.Multiline '\n' Text '%apply' Name.Function ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator ' ' Text '{' Punctuation ' ' Text 'SWIGTYPE' Name ' ' Text '*' Operator 'const' Keyword ' ' Text '}' Punctuation '\n' Text '\n' Text '/* String & length */' Comment.Multiline '\n' Text '%typemap' Name.Function '(' Punctuation 'jni' Name ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '"' Literal.String 'jbyteArray' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jtype' Name ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '"' Literal.String 'byte[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'jstype' Name ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '"' Literal.String 'byte[]' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'javain' Name ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '"' Literal.String '$javainput' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'freearg' Name ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '"' Literal.String '"' Literal.String '\n' Text '%typemap' Name.Function '(' Punctuation 'in' Name ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$input' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator ')' Punctuation ' ' Text 'JCALL2' Name '(' Punctuation 'GetByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$2' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'size_t' Keyword.Type ')' Punctuation ' ' Text 'JCALL1' Name '(' Punctuation 'GetArrayLength' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '}' Punctuation ' ' Text 'else' Keyword ' ' Text '{' Punctuation '\n' Text ' ' Text '$1' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text '$2' Name ' ' Text '=' Operator ' ' Text '0' Literal.Number.Integer ';' Punctuation '\n' Text ' ' Text '}' Punctuation '\n' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'argout' Name ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'if' Keyword ' ' Text '(' Punctuation '$input' Name ')' Punctuation ' ' Text 'JCALL3' Name '(' Punctuation 'ReleaseByteArrayElements' Name ',' Punctuation ' ' Text 'jenv' Name ',' Punctuation ' ' Text '$input' Name ',' Punctuation ' ' Text '(' Punctuation 'jbyte' Name ' ' Text '*' Operator ')' Punctuation '$1' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ')' Punctuation ';' Punctuation '\n' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'directorin' Name ',' Punctuation ' ' Text 'descriptor' Name '=' Operator '"' Literal.String '[B' Literal.String '"' Literal.String ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '{' Punctuation '\n' Text ' ' Text 'jbyteArray' Name ' ' Text 'jb' Name ' ' Text '=' Operator ' ' Text '(' Punctuation 'jenv' Name ')' Punctuation '-' Operator '>' Operator 'NewByteArray' Name '(' Punctuation '$2' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '(' Punctuation 'jenv' Name ')' Punctuation '-' Operator '>' Operator 'SetByteArrayRegion' Name '(' Punctuation 'jb' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ',' Punctuation ' ' Text '$2' Name ',' Punctuation ' ' Text '(' Punctuation 'jbyte' Name ' ' Text '*' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation '\n' Text ' ' Text '$input' Name ' ' Text '=' Operator ' ' Text 'jb' Name ';' Punctuation '\n' Text '}' Punctuation '\n' Text '%typemap' Name.Function '(' Punctuation 'directorargout' Name ')' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation '\n' Text '%' Operator '{' Punctuation '(' Punctuation 'jenv' Name ')' Punctuation '-' Operator '>' Operator 'GetByteArrayRegion' Name '(' Punctuation '$input' Name ',' Punctuation ' ' Text '0' Literal.Number.Integer ',' Punctuation ' ' Text '$2' Name ',' Punctuation ' ' Text '(' Punctuation 'jbyte' Name ' ' Text '*' Operator ')' Punctuation '$1' Name ')' Punctuation ';' Punctuation ' ' Text '%' Operator '}' Punctuation '\n' Text '%apply' Name.Function ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'size_t' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '{' Punctuation ' ' Text '(' Punctuation 'char' Keyword.Type ' ' Text '*' Operator 'STRING' Name ',' Punctuation ' ' Text 'int' Keyword.Type ' ' Text 'LENGTH' Name ')' Punctuation ' ' Text '}' Punctuation '\n' Text '\n' Text '/* java keywords */' Comment.Multiline '\n' Text '%include' Name.Function ' ' Text '<' Operator 'javakw' Name '.' Punctuation 'swg' Name '>' Operator '\n' Text '\n' Text '// Default enum handling\n' Comment.Single '%include' Name.Function ' ' Text '<' Operator 'enumtypesafe' Name '.' Punctuation 'swg' Name '>' Operator '\n' Text