Top Description Inners Constructors Methods
org.jruby.javasupport.ext

public Class JavaMath

extends Object
Class Inheritance
Imports
org.jruby.RubyClass, org.jruby.anno.JRubyMethod, .JRubyModule, org.jruby.api.Access, org.jruby.ext.bigdecimal.RubyBigDecimal, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject

Java::JavaMath package extensions.
Author
kares

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JavaMathback to summary
public JavaMath()

Method Detail

defineback to summary
public static void define(ThreadContext context)
org.jruby.javasupport.ext back to summary

public Class JavaMath.BigDecimal

extends Object
Class Inheritance
Annotations
@JRubyModule
name:Java::JavaMath::BigDecimal

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static RubyBigDecimal
public static IRubyObject
coerce(final ThreadContext context, final IRubyObject self, final IRubyObject type)

public static IRubyObject
public static IRubyObject
public static IRubyObject
public static IRubyObject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BigDecimalback to summary
public BigDecimal()

Method Detail

asRubyBigDecimalback to summary
private static RubyBigDecimal asRubyBigDecimal(ThreadContext context, final BigDecimal value)
coerceback to summary
public static IRubyObject coerce(final ThreadContext context, final IRubyObject self, final IRubyObject type)
Annotations
@JRubyMethod
name:coerce
to_dback to summary
public static IRubyObject to_d(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
name:to_d
to_fback to summary
public static IRubyObject to_f(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
name:to_f
to_iback to summary
public static IRubyObject to_i(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
name:to_i, to_int
to_rback to summary
public static IRubyObject to_r(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
name:to_r