org.jruby.RubyModule.constantTableFetch()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中org.jruby.RubyModule.constantTableFetch方法的一些代码示例,展示了RubyModule.constantTableFetch的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RubyModule.constantTableFetch方法的具体详情如下:
包路径:org.jruby.RubyModule
类名称:RubyModule
方法名:constantTableFetch

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;
}

相关文章

微信公众号

最新文章

更多

RubyModule类方法