本文整理了Java中org.jruby.RubyModule.constantTableFetch
方法的一些代码示例,展示了RubyModule.constantTableFetch
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RubyModule.constantTableFetch
方法的具体详情如下:
包路径:org.jruby.RubyModule
类名称:RubyModule
方法名:constantTableFetch
暂无
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@Override
protected IRubyObject constantTableFetch(String name) {
return delegate.constantTableFetch(name);
}
代码示例来源:origin: org.jruby/jruby-core
@Override
protected IRubyObject constantTableFetch(String name) {
return origin.constantTableFetch(name);
}
代码示例来源:origin: org.jruby/jruby-complete
@Override
protected IRubyObject constantTableFetch(String name) {
return origin.constantTableFetch(name);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
protected IRubyObject constantTableFetch(String name) {
return delegate.constantTableFetch(name);
}
代码示例来源:origin: org.jruby/jruby-complete
public boolean fastIsConstantDefined19(String internedName, boolean inherit) {
assert internedName.equals(internedName.intern()) : internedName + " is not interned";
assert IdUtil.isConstant(internedName);
for (RubyModule module = this; module != null; module = module.getSuperClass()) {
Object value;
if ((value = module.constantTableFetch(internedName)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(internedName) != null;
}
if (!inherit) {
break;
}
}
return false;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public boolean fastIsConstantDefined19(String internedName, boolean inherit) {
assert internedName.equals(internedName.intern()) : internedName + " is not interned";
assert IdUtil.isConstant(internedName);
for (RubyModule module = this; module != null; module = module.getSuperClass()) {
Object value;
if ((value = module.constantTableFetch(internedName)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(internedName) != null;
}
if (!inherit) {
break;
}
}
return false;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public boolean fastIsConstantDefined19(String internedName, boolean inherit) {
assert internedName.equals(internedName.intern()) : internedName + " is not interned";
assert IdUtil.isConstant(internedName);
for (RubyModule module = this; module != null; module = module.getSuperClass()) {
Object value;
if ((value = module.constantTableFetch(internedName)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(internedName) != null;
}
if (!inherit) {
break;
}
}
return false;
}
代码示例来源:origin: org.jruby/jruby-core
public boolean fastIsConstantDefined19(String internedName, boolean inherit) {
assert internedName.equals(internedName.intern()) : internedName + " is not interned";
assert IdUtil.isConstant(internedName);
for (RubyModule module = this; module != null; module = module.getSuperClass()) {
Object value;
if ((value = module.constantTableFetch(internedName)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(internedName) != null;
}
if (!inherit) {
break;
}
}
return false;
}
代码示例来源:origin: org.jruby/jruby-core
public boolean fastIsConstantDefined(String internedName) {
assert internedName.equals(internedName.intern()) : internedName + " is not interned";
assert IdUtil.isConstant(internedName);
boolean isObject = this == getRuntime().getObject();
RubyModule module = this;
do {
Object value;
if ((value = module.constantTableFetch(internedName)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(internedName) != null;
}
} while (isObject && (module = module.getSuperClass()) != null );
return false;
}
代码示例来源:origin: org.jruby/jruby-complete
public boolean fastIsConstantDefined(String internedName) {
assert internedName.equals(internedName.intern()) : internedName + " is not interned";
assert IdUtil.isConstant(internedName);
boolean isObject = this == getRuntime().getObject();
RubyModule module = this;
do {
Object value;
if ((value = module.constantTableFetch(internedName)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(internedName) != null;
}
} while (isObject && (module = module.getSuperClass()) != null );
return false;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public boolean fastIsConstantDefined(String internedName) {
assert internedName.equals(internedName.intern()) : internedName + " is not interned";
assert IdUtil.isConstant(internedName);
boolean isObject = this == getRuntime().getObject();
RubyModule module = this;
do {
Object value;
if ((value = module.constantTableFetch(internedName)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(internedName) != null;
}
} while (isObject && (module = module.getSuperClass()) != null );
return false;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public boolean fastIsConstantDefined(String internedName) {
assert internedName.equals(internedName.intern()) : internedName + " is not interned";
assert IdUtil.isConstant(internedName);
boolean isObject = this == getRuntime().getObject();
RubyModule module = this;
do {
Object value;
if ((value = module.constantTableFetch(internedName)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(internedName) != null;
}
} while (isObject && (module = module.getSuperClass()) != null );
return false;
}
代码示例来源:origin: org.jruby/jruby-complete
/** rb_const_defined_at
*
*/
public boolean isConstantDefined(String name) {
assert IdUtil.isConstant(name);
boolean isObject = this == getRuntime().getObject();
RubyModule module = this;
do {
Object value;
if ((value = module.constantTableFetch(name)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(name) != null;
}
} while (isObject && (module = module.getSuperClass()) != null );
return false;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/** rb_const_defined_at
*
*/
public boolean isConstantDefined(String name) {
assert IdUtil.isConstant(name);
boolean isObject = this == getRuntime().getObject();
RubyModule module = this;
do {
Object value;
if ((value = module.constantTableFetch(name)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(name) != null;
}
} while (isObject && (module = module.getSuperClass()) != null );
return false;
}
代码示例来源:origin: org.jruby/jruby-core
/** rb_const_defined_at
*
*/
public boolean isConstantDefined(String name) {
assert IdUtil.isConstant(name);
boolean isObject = this == getRuntime().getObject();
RubyModule module = this;
do {
Object value;
if ((value = module.constantTableFetch(name)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(name) != null;
}
} while (isObject && (module = module.getSuperClass()) != null );
return false;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/** rb_const_defined_at
*
*/
public boolean isConstantDefined(String name) {
assert IdUtil.isConstant(name);
boolean isObject = this == getRuntime().getObject();
RubyModule module = this;
do {
Object value;
if ((value = module.constantTableFetch(name)) != null) {
if (value != UNDEF) return true;
return getAutoloadMap().get(name) != null;
}
} while (isObject && (module = module.getSuperClass()) != null );
return false;
}
内容来源于网络,如有侵权,请联系作者删除!