Top Description Constructors Methods
org.jruby

public Class RubyComparable

extends Object
Class Inheritance
Annotations
@JRubyModule
name:Comparable
Imports
org.jruby.anno.JRubyMethod, .JRubyModule, org.jruby.runtime.CallSite, .JavaSites.ComparableSites, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Implementation of the Comparable module.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static RubyBoolean
between_p(ThreadContext context, IRubyObject recv, IRubyObject first, IRubyObject second)

cmp_between

private static IRubyObject
callCmpMethod(final ThreadContext context, final IRubyObject recv, final IRubyObject other, IRubyObject returnValueOnError)

public static IRubyObject
public static IRubyObject
public static int
public static int
public static IRubyObject
cmperr(IRubyObject recv, IRubyObject other)
Deprecated

public static IRubyObject
cmperr(ThreadContext context, IRubyObject recv, IRubyObject other)

rb_cmperr

public static int
cmpint(ThreadContext context, CallSite op_gt, CallSite op_lt, IRubyObject val, IRubyObject a, IRubyObject b)

rb_cmpint

public static int
public static RubyModule
public static IRubyObject
invcmp(final ThreadContext context, final IRubyObject recv, final IRubyObject other)

rb_invcmp

public static IRubyObject
private static IRubyObject
invcmpRecursive(ThreadContext context, IRubyObject recv, IRubyObject other, boolean recur)

public static IRubyObject
op_equal(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_equal (cmp_eq inlined here)

public static RubyBoolean
op_ge(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_ge

public static RubyBoolean
op_gt(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_gt

public static RubyBoolean
op_le(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_le

public static RubyBoolean
op_lt(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_lt

public static RubyBoolean
op_lt(ThreadContext context, CallSite cmp, IRubyObject recv, IRubyObject other)

private static JavaSites.ComparableSites
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RubyComparableback to summary
public RubyComparable()

Method Detail

between_pback to summary
public static RubyBoolean between_p(ThreadContext context, IRubyObject recv, IRubyObject first, IRubyObject second)

cmp_between

Annotations
@JRubyMethod
name:between?
callCmpMethodback to summary
private static IRubyObject callCmpMethod(final ThreadContext context, final IRubyObject recv, final IRubyObject other, IRubyObject returnValueOnError)
clampback to summary
public static IRubyObject clamp(ThreadContext context, IRubyObject recv, IRubyObject arg)
Annotations
@JRubyMethod
name:clamp
clampback to summary
public static IRubyObject clamp(ThreadContext context, IRubyObject recv, IRubyObject min, IRubyObject max)
Annotations
@JRubyMethod
name:clamp
cmpAndCmpintback to summary
public static int cmpAndCmpint(ThreadContext context, IRubyObject a, IRubyObject b)
cmpAndCmpintback to summary
public static int cmpAndCmpint(ThreadContext context, CallSite op_cmp, CallSite op_gt, CallSite op_lt, IRubyObject a, IRubyObject b)
cmperrback to summary
public static IRubyObject cmperr(IRubyObject recv, IRubyObject other)

Deprecated

Annotations
@Deprecated
cmperrback to summary
public static IRubyObject cmperr(ThreadContext context, IRubyObject recv, IRubyObject other)

rb_cmperr

cmpintback to summary
public static int cmpint(ThreadContext context, CallSite op_gt, CallSite op_lt, IRubyObject val, IRubyObject a, IRubyObject b)

rb_cmpint

cmpintback to summary
public static int cmpint(ThreadContext context, IRubyObject val, IRubyObject a, IRubyObject b)
createComparableback to summary
public static RubyModule createComparable(ThreadContext context)
invcmpback to summary
public static IRubyObject invcmp(final ThreadContext context, final IRubyObject recv, final IRubyObject other)

rb_invcmp

invcmpback to summary
public static IRubyObject invcmp(final ThreadContext context, ThreadContext.RecursiveFunctionEx<IRubyObject> func, IRubyObject recv, IRubyObject other)

rb_invcmp

invcmpRecursiveback to summary
private static IRubyObject invcmpRecursive(ThreadContext context, IRubyObject recv, IRubyObject other, boolean recur)
op_equalback to summary
public static IRubyObject op_equal(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_equal (cmp_eq inlined here)

Annotations
@JRubyMethod
name:==
op_geback to summary
public static RubyBoolean op_ge(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_ge

Annotations
@JRubyMethod
name:>=
op_gtback to summary
public static RubyBoolean op_gt(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_gt

Annotations
@JRubyMethod
name:>
op_leback to summary
public static RubyBoolean op_le(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_le

Annotations
@JRubyMethod
name:<=
op_ltback to summary
public static RubyBoolean op_lt(ThreadContext context, IRubyObject recv, IRubyObject other)

cmp_lt

Annotations
@JRubyMethod
name:<
op_ltback to summary
public static RubyBoolean op_lt(ThreadContext context, CallSite cmp, IRubyObject recv, IRubyObject other)
sitesback to summary
private static JavaSites.ComparableSites sites(ThreadContext context)