本文整理了Java中org.jruby.RubyClass.deprecateConstant
方法的一些代码示例,展示了RubyClass.deprecateConstant
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RubyClass.deprecateConstant
方法的具体详情如下:
包路径:org.jruby.RubyClass
类名称:RubyClass
方法名:deprecateConstant
暂无
代码示例来源:origin: org.jruby/jruby-complete
public static RubyClass createClass(Ruby runtime, RubyClass baseClass) {
RubyClass exceptionClass = runtime.defineClass(CLASS_NAME, baseClass, NATIVE_EXCEPTION_ALLOCATOR);
runtime.getObject().deprecateConstant(runtime, CLASS_NAME);
exceptionClass.defineAnnotatedMethods(NativeException.class);
return exceptionClass;
}
代码示例来源:origin: org.jruby/jruby-core
public static RubyClass createClass(Ruby runtime, RubyClass baseClass) {
RubyClass exceptionClass = runtime.defineClass(CLASS_NAME, baseClass, NATIVE_EXCEPTION_ALLOCATOR);
runtime.getObject().deprecateConstant(runtime, CLASS_NAME);
exceptionClass.defineAnnotatedMethods(NativeException.class);
return exceptionClass;
}
代码示例来源:origin: org.jruby/jruby-complete
public static RubyClass createBignumClass(Ruby runtime) {
RubyClass bignum = runtime.getInteger();
runtime.getObject().setConstant("Bignum", bignum);
runtime.getObject().deprecateConstant(runtime, "Bignum");
runtime.setBignum(bignum);
return bignum;
}
代码示例来源:origin: org.jruby/jruby-core
public static RubyClass createBignumClass(Ruby runtime) {
RubyClass bignum = runtime.getInteger();
runtime.getObject().setConstant("Bignum", bignum);
runtime.getObject().deprecateConstant(runtime, "Bignum");
runtime.setBignum(bignum);
return bignum;
}
代码示例来源:origin: org.jruby/jruby-complete
public static RubyClass createFixnumClass(Ruby runtime) {
RubyClass fixnum = runtime.getInteger();
runtime.getObject().setConstant("Fixnum", fixnum);
runtime.getObject().deprecateConstant(runtime, "Fixnum");
runtime.setFixnum(fixnum);
for (int i = 0; i < runtime.fixnumCache.length; i++) {
runtime.fixnumCache[i] = new RubyFixnum(fixnum, i - CACHE_OFFSET);
}
return fixnum;
}
代码示例来源:origin: org.jruby/jruby-core
public static RubyClass createFixnumClass(Ruby runtime) {
RubyClass fixnum = runtime.getInteger();
runtime.getObject().setConstant("Fixnum", fixnum);
runtime.getObject().deprecateConstant(runtime, "Fixnum");
runtime.setFixnum(fixnum);
for (int i = 0; i < runtime.fixnumCache.length; i++) {
runtime.fixnumCache[i] = new RubyFixnum(fixnum, i - CACHE_OFFSET);
}
return fixnum;
}
代码示例来源:origin: org.jruby/jruby-complete
private void initCore() {
if (profile.allowClass("Data")) {
dataClass = defineClass("Data", objectClass, ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR);
getObject().deprecateConstant(this, "Data");
代码示例来源:origin: org.jruby/jruby-core
private void initCore() {
if (profile.allowClass("Data")) {
dataClass = defineClass("Data", objectClass, ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR);
getObject().deprecateConstant(this, "Data");
代码示例来源:origin: org.jruby/jruby-core
runtime.defineGlobalConstant("NIL", runtime.getNil());
runtime.getObject().deprecateConstant(runtime, "TRUE");
runtime.getObject().deprecateConstant(runtime, "FALSE");
runtime.getObject().deprecateConstant(runtime, "NIL");
代码示例来源:origin: org.jruby/jruby-complete
runtime.defineGlobalConstant("NIL", runtime.getNil());
runtime.getObject().deprecateConstant(runtime, "TRUE");
runtime.getObject().deprecateConstant(runtime, "FALSE");
runtime.getObject().deprecateConstant(runtime, "NIL");
内容来源于网络,如有侵权,请联系作者删除!