org.jruby
Class RubyBoolean

java.lang.Object
  extended by org.jruby.RubyObject
      extended by org.jruby.RubyBoolean
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject

public class RubyBoolean
extends RubyObject

Author:
jpetersen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 
Fields inherited from class org.jruby.RubyObject
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
RubyBoolean(Ruby runtime, boolean value)
           
 
Method Summary
static RubyClass createFalseClass(Ruby runtime)
           
static RubyClass createTrueClass(Ruby runtime)
           
 IRubyObject false_and(IRubyObject oth)
           
 IRubyObject false_id()
           
 IRubyObject false_or(IRubyObject oth)
           
 IRubyObject false_to_s()
           
 IRubyObject false_xor(IRubyObject oth)
           
 java.lang.Class getJavaClass()
          RubyMethod getJavaClass.
 int getNativeTypeIndex()
          This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.
 Ruby getRuntime()
          Getter for property ruby.
 RubyFixnum id()
          Return the internal id of an object.
 boolean isImmediate()
           
 void marshalTo(MarshalStream output)
           
static RubyBoolean newBoolean(Ruby runtime, boolean value)
           
 IRubyObject true_and(IRubyObject oth)
           
 IRubyObject true_id()
           
 IRubyObject true_or(IRubyObject oth)
           
 IRubyObject true_to_s()
           
 IRubyObject true_xor(IRubyObject oth)
           
 RubyClass type()
          false_type true_type
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissing, callMethodMissing, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getMetaClass, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, infectBy, inherited, initCopy, initialize_copy, initialize, inspect, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, to_s, toString, trueFalseNil, trueFalseNil, type_deprecated, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubyBoolean

public RubyBoolean(Ruby runtime,
                   boolean value)
Method Detail

getNativeTypeIndex

public int getNativeTypeIndex()
Description copied from class: RubyObject
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.

Specified by:
getNativeTypeIndex in interface IRubyObject
Overrides:
getNativeTypeIndex in class RubyObject
Returns:
the ClassIndex of the native type this object was constructed from

getRuntime

public Ruby getRuntime()
Description copied from class: RubyObject
Getter for property ruby.

Specified by:
getRuntime in interface IRubyObject
Overrides:
getRuntime in class RubyObject
Returns:
Value of property ruby.

isImmediate

public boolean isImmediate()
Specified by:
isImmediate in interface IRubyObject
Overrides:
isImmediate in class RubyObject
Returns:

getJavaClass

public java.lang.Class getJavaClass()
Description copied from interface: IRubyObject
RubyMethod getJavaClass.

Specified by:
getJavaClass in interface IRubyObject
Overrides:
getJavaClass in class RubyObject
Returns:
Class

id

public RubyFixnum id()
Description copied from class: RubyObject
Return the internal id of an object. CRuby function: rb_obj_id

Specified by:
id in interface IRubyObject
Overrides:
id in class RubyObject
Returns:

createFalseClass

public static RubyClass createFalseClass(Ruby runtime)

createTrueClass

public static RubyClass createTrueClass(Ruby runtime)

newBoolean

public static RubyBoolean newBoolean(Ruby runtime,
                                     boolean value)

type

public RubyClass type()
false_type true_type

Overrides:
type in class RubyObject

false_and

public IRubyObject false_and(IRubyObject oth)

false_or

public IRubyObject false_or(IRubyObject oth)

false_xor

public IRubyObject false_xor(IRubyObject oth)

false_id

public IRubyObject false_id()

false_to_s

public IRubyObject false_to_s()

true_and

public IRubyObject true_and(IRubyObject oth)

true_or

public IRubyObject true_or(IRubyObject oth)

true_xor

public IRubyObject true_xor(IRubyObject oth)

true_id

public IRubyObject true_id()

true_to_s

public IRubyObject true_to_s()

marshalTo

public void marshalTo(MarshalStream output)
               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2007 JRuby Team. All Rights Reserved.