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

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

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

Ruby.isFloatReopened介绍

[英]Whether the Float class has been reopened and modified
[中]Float类是否已重新打开和修改

代码示例

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) {
  if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_equal(context, flote);
  }
  return super.call(context, caller, self, flote);
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) {
  if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_equal(context, flote);
  }
  return super.call(context, caller, self, flote);
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) {
  if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_ge(context, flote);
  }
  return super.call(context, caller, self, flote);
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_minus(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_minus(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_equal(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_equal(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) {
  if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
    return ((RubyFixnum) self).op_mul(context, fixnum);
  } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_mul(context, fixnum);
  }
  return super.call(context, caller, self, fixnum);
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_le(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_le(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) {
  if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
    return ((RubyFixnum) self).op_plus(context, fixnum);
  } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_plus(context, fixnum);
  }
  return super.call(context, caller, self, fixnum);
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) {
  if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
    return ((RubyFixnum) self).op_minus(context, fixnum);
  } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_minus(context, fixnum);
  }
  return super.call(context, caller, self, fixnum);
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) {
  if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
    return ((RubyFixnum) self).op_lt(context, fixnum);
  } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_lt(context, fixnum);
  }
  return super.call(context, caller, self, fixnum);
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_gt(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_gt(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) {
  if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
    return ((RubyFixnum) self).op_cmp(context, fixnum);
  } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_cmp(context, fixnum);
  }
  return super.call(context, caller, self, fixnum);
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_cmp(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_cmp(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) {
  if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
    return ((RubyFixnum) self).op_ge(context, fixnum);
  } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_ge(context, fixnum);
  }
  return super.call(context, caller, self, fixnum);
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_ge(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_ge(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_mul(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_mul(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) {
  if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
    return ((RubyFixnum) self).op_gt(context, fixnum);
  } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
    return ((RubyFloat) self).op_gt(context, fixnum);
  }
  return super.call(context, caller, self, fixnum);
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_plus(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_plus(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_gt(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_gt(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

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

@Override
  public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) {
    if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) {
      return ((RubyFixnum) self).op_ge(context, arg);
    } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) {
      return ((RubyFloat) self).op_ge(context, arg);
    }
    return super.call(context, caller, self, arg);
  }
}

相关文章

Ruby类方法