Examples of defineConstant()


Examples of org.jruby.RubyModule.defineConstant()

        // Add aliases in Type::*, NativeType::* and FFI::TYPE_*
        //
        for (Map.Entry<String, IRubyObject> c : builtinClass.getConstantMap().entrySet()) {
            if (c.getValue() instanceof Type.Builtin) {
                typeClass.defineConstant(c.getKey(), c.getValue());
                nativeType.defineConstant(c.getKey(), c.getValue());
                ffiModule.defineConstant("TYPE_" + c.getKey(), c.getValue());
            }
        }

        RubyClass arrayTypeClass = typeClass.defineClassUnder("Array", typeClass,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.