org.jruby.Ruby.isDoNotReverseLookupEnabled()方法的使用及代码示例

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

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

Ruby.isDoNotReverseLookupEnabled介绍

暂无

代码示例

代码示例来源:origin: org.jruby/jruby-complete

public boolean doNotReverseLookup(ThreadContext context) {
  return context.runtime.isDoNotReverseLookupEnabled() || doNotReverseLookup;
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public boolean doNotReverseLookup(ThreadContext context) {
  return context.runtime.isDoNotReverseLookupEnabled() || doNotReverseLookup;
}

代码示例来源:origin: org.jruby/jruby-core

public boolean doNotReverseLookup(ThreadContext context) {
  return context.runtime.isDoNotReverseLookupEnabled() || doNotReverseLookup;
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public boolean doNotReverseLookup(ThreadContext context) {
  return context.runtime.isDoNotReverseLookupEnabled() || doNotReverseLookup;
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private static String getHostAddress(ThreadContext context, InetAddress addr) {
  return context.runtime.isDoNotReverseLookupEnabled() ? addr.getHostAddress() : addr.getCanonicalHostName();
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

private static String getHostAddress(ThreadContext context, InetAddress addr) {
  return context.runtime.isDoNotReverseLookupEnabled() ? addr.getHostAddress() : addr.getCanonicalHostName();
}

代码示例来源:origin: org.jruby/jruby-complete

private static String getHostAddress(ThreadContext context, InetAddress addr, Boolean reverse) {
  String ret;
  if (reverse == null) {
    ret = context.runtime.isDoNotReverseLookupEnabled() ?
        addr.getHostAddress() : addr.getCanonicalHostName();
  } else if (reverse) {
    ret = addr.getCanonicalHostName();
  } else {
    ret = addr.getHostAddress();
  }
  return ret;
}

代码示例来源:origin: org.jruby/jruby-core

private static String getHostAddress(ThreadContext context, InetAddress addr, Boolean reverse) {
  String ret;
  if (reverse == null) {
    ret = context.runtime.isDoNotReverseLookupEnabled() ?
        addr.getHostAddress() : addr.getCanonicalHostName();
  } else if (reverse) {
    ret = addr.getCanonicalHostName();
  } else {
    ret = addr.getHostAddress();
  }
  return ret;
}

代码示例来源:origin: org.jruby/jruby-complete

@JRubyMethod(meta = true)
public static IRubyObject do_not_reverse_lookup(ThreadContext context, IRubyObject recv) {
  return context.runtime.newBoolean(context.runtime.isDoNotReverseLookupEnabled());
}

代码示例来源:origin: org.jruby/jruby-complete

private IRubyObject peeraddrCommon(ThreadContext context, IRubyObject reverse) {
  Boolean doReverse = doReverseLookup(context, reverse);
  if (doReverse == null) doReverse = !context.runtime.isDoNotReverseLookupEnabled();
  return peeraddrCommon(context, doReverse);
}

代码示例来源:origin: org.jruby/jruby-core

@JRubyMethod(meta = true)
public static IRubyObject do_not_reverse_lookup(ThreadContext context, IRubyObject recv) {
  return context.runtime.newBoolean(context.runtime.isDoNotReverseLookupEnabled());
}

代码示例来源:origin: org.jruby/jruby-core

private IRubyObject peeraddrCommon(ThreadContext context, IRubyObject reverse) {
  Boolean doReverse = doReverseLookup(context, reverse);
  if (doReverse == null) doReverse = !context.runtime.isDoNotReverseLookupEnabled();
  return peeraddrCommon(context, doReverse);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

@JRubyMethod(meta = true)
public static IRubyObject do_not_reverse_lookup(ThreadContext context, IRubyObject recv) {
  return context.runtime.newBoolean(context.runtime.isDoNotReverseLookupEnabled());
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@JRubyMethod(meta = true)
public static IRubyObject do_not_reverse_lookup(ThreadContext context, IRubyObject recv) {
  return context.runtime.newBoolean(context.runtime.isDoNotReverseLookupEnabled());
}

代码示例来源:origin: org.jruby/jruby-complete

@JRubyMethod(name = "addr")
public IRubyObject addr(ThreadContext context) {
  return addrCommon(context, !context.getRuntime().isDoNotReverseLookupEnabled());
}

代码示例来源:origin: org.jruby/jruby-core

@JRubyMethod(name = "addr")
public IRubyObject addr(ThreadContext context) {
  return addrCommon(context, !context.getRuntime().isDoNotReverseLookupEnabled());
}

代码示例来源:origin: org.jruby/jruby-core

@JRubyMethod(name = "peeraddr")
public IRubyObject peeraddr(ThreadContext context) {
  return peeraddrCommon(context, !context.getRuntime().isDoNotReverseLookupEnabled());
}

代码示例来源:origin: org.jruby/jruby-complete

@JRubyMethod(name = "peeraddr")
public IRubyObject peeraddr(ThreadContext context) {
  return peeraddrCommon(context, !context.getRuntime().isDoNotReverseLookupEnabled());
}

相关文章

微信公众号

最新文章

更多

Ruby类方法