Package org.jruby.ext.ffi

Examples of org.jruby.ext.ffi.MappedType


        } else if (returnType instanceof StructByValue) {
            return new StructByValueInvoker((StructByValue) returnType);
       
        } else if (returnType instanceof MappedType) {
            MappedType ctype = (MappedType) returnType;
            return new ConvertingInvoker(getFunctionInvoker(ctype.getRealType()),
                    DataConverters.getResultConverter(ctype));
        }

        throw returnType.getRuntime().newArgumentError("Cannot get FunctionInvoker for " + returnType);
    }
View Full Code Here


        } else if (type instanceof org.jruby.ext.ffi.StructByValue) {
            return new StructByValueMarshaller((org.jruby.ext.ffi.StructByValue) type);
       
        } else if (type instanceof org.jruby.ext.ffi.MappedType) {
            MappedType ctype = (MappedType) type;
            return new ConvertingMarshaller(
                    getMarshaller(ctype.getRealType(), convention, enums),
                    DataConverters.getParameterConverter(type,
                        enums instanceof RubyHash ? (RubyHash) enums : null));

        } else {
            return null;
View Full Code Here

        } else if (returnType instanceof StructByValue) {
            return new StructByValueInvoker((StructByValue) returnType);
       
        } else if (returnType instanceof MappedType) {
            MappedType ctype = (MappedType) returnType;
            return new ConvertingInvoker(getFunctionInvoker(ctype.getRealType()),
                    DataConverters.getResultConverter(ctype));
        }

        throw returnType.getRuntime().newArgumentError("Cannot get FunctionInvoker for " + returnType);
    }
View Full Code Here

        } else if (type instanceof org.jruby.ext.ffi.StructByValue) {
            return new StructByValueMarshaller((org.jruby.ext.ffi.StructByValue) type);
       
        } else if (type instanceof org.jruby.ext.ffi.MappedType) {
            MappedType ctype = (MappedType) type;
            return new ConvertingMarshaller(
                    getMarshaller(ctype.getRealType(), convention, enums),
                    DataConverters.getParameterConverter(type,
                        enums instanceof RubyHash ? (RubyHash) enums : null));

        } else {
            return null;
View Full Code Here

TOP

Related Classes of org.jruby.ext.ffi.MappedType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.