org.jruby
Class RubyGlobal.StringOnlyRubyHash

java.lang.Object
  extended by org.jruby.RubyBasicObject
      extended by org.jruby.RubyObject
          extended by org.jruby.RubyHash
              extended by org.jruby.RubyGlobal.StringOnlyRubyHash
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType
Enclosing class:
RubyGlobal

public static class RubyGlobal.StringOnlyRubyHash
extends RubyHash

Obligate string-keyed and string-valued hash, used for ENV and ENV_JAVA

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyHash
RubyHash.Visitor
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.ObjectMethods
 
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer, RubyBasicObject.VariableTableEntry
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.jruby.RubyHash
collisions
 
Fields inherited from class org.jruby.RubyObject
OBJECT_ALLOCATOR
 
Fields inherited from class org.jruby.RubyBasicObject
ALL_F, dataStruct, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, VARIABLE_TABLE_DEFAULT_CAPACITY, VARIABLE_TABLE_EMPTY_TABLE, VARIABLE_TABLE_LOAD_FACTOR, VARIABLE_TABLE_MAXIMUM_CAPACITY, variableTable, variableTableSize, variableTableThreshold
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
RubyGlobal.StringOnlyRubyHash(Ruby runtime, java.util.Map valueMap, IRubyObject defaultValue)
           
 
Method Summary
 IRubyObject op_aref(ThreadContext context, IRubyObject key)
          rb_hash_aref
 IRubyObject op_aset(ThreadContext context, IRubyObject key, IRubyObject value)
          rb_hash_aset
 RubyHash to_hash()
          rb_hash_to_hash
 IRubyObject to_s()
          rb_any_to_s call-seq: obj.to_s => string Returns a string representing obj.
 
Methods inherited from class org.jruby.RubyHash
aref, aset, assoc, clear, containsKey, containsValue, convertToHash, create, createHashClass, default_proc, default_value_get, default_value_get, default_value_get, default_value_set, delete_if, delete_if19, delete, directEntrySet, directKeySet, directValues, each_key, each_key19, each_pair, each_pair19, each_value, each_value19, each, each19, empty_p, entrySet, equals, fastARef, fastASet, fastDelete, fetch, flatten, flatten, get, getIfNone, getJavaClass, getNativeTypeIndex, has_key_p, has_value_p, hasDefaultProc, hash19, index, index19, indices, initialize_copy, initialize, inspect, invert, isEmpty, key, keys, keySet, marshalTo, merge_bang, merge, modify, newHash, newHash, op_aset, op_eql19, op_equal, op_equal19, put, putAll, rassoc, rb_clear, rb_size, rb_values, rehash, reject_bang, reject, reject19, remove, replace, select, select19, shift, size, sort, to_a, to_s, to_s19, try_convert, unmarshalFrom, values_at, values, visitAll
 
Methods inherited from class org.jruby.RubyObject
as, attachToObjectSpace, callInit, checkFrozen, convertToType, createObjectClass, display, dup, eql_p, eqlInternal, equal_p, equalInternal, evalUnder, evalUnder, extend, freeze, frozen_p, hash, hashCode, id_deprecated, id, initialize_copy, initialize, inspect, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, kind_of_p, method, methods, nil_p, op_eqq, op_match, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, respond_to_p, respond_to_p, send, send, send, send, send, singleton_methods, singleton_methods19, singletonMethods, specificEval, specificEval, specificEval, specificEval, specificEval, taint, tainted_p, to_java, toString, type_deprecated, type, untaint, validateInstanceVariable
 
Methods inherited from class org.jruby.RubyBasicObject
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkStringType, convertToArray, convertToFloat, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataWrapStruct, ensureInstanceVariablesSettable, eql, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, getFlag, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariableList, getInternalVariables, getMetaClass, getRuntime, getSingletonClass, getSingletonClassClone, getType, getVariableCount, getVariableList, getVariableMap, getVariableNameList, hasInstanceVariable, hasInternalVariable, hasVariables, infectBy, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isRubyVariable, isTaint, isTrue, makeMetaClass, op_not_equal, op_not, removeFinalizers, removeInstanceVariable, removeInternalVariable, respondsTo, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setTaint, syncVariables, taint, testFrozen, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableGetMap, variableTableGetMap, variableTableGetSize, variableTableGetTable, variableTableReadLocked, variableTableRehash, variableTableRemove, variableTableStore, variableTableSync
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
hashCode
 

Constructor Detail

RubyGlobal.StringOnlyRubyHash

public RubyGlobal.StringOnlyRubyHash(Ruby runtime,
                                     java.util.Map valueMap,
                                     IRubyObject defaultValue)
Method Detail

to_hash

public RubyHash to_hash()
Description copied from class: RubyHash
rb_hash_to_hash

Overrides:
to_hash in class RubyHash

op_aref

public IRubyObject op_aref(ThreadContext context,
                           IRubyObject key)
Description copied from class: RubyHash
rb_hash_aref

Overrides:
op_aref in class RubyHash

op_aset

public IRubyObject op_aset(ThreadContext context,
                           IRubyObject key,
                           IRubyObject value)
Description copied from class: RubyHash
rb_hash_aset

Overrides:
op_aset in class RubyHash

to_s

public IRubyObject to_s()
Description copied from class: RubyObject
rb_any_to_s call-seq: obj.to_s => string Returns a string representing obj. The default to_s prints the object's class and an encoding of the object id. As a special case, the top-level object that is the initial execution context of Ruby programs returns ``main.''

Overrides:
to_s in class RubyObject


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