org.jruby.java.proxies
Class MapJavaProxy
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.java.proxies.JavaProxy
org.jruby.java.proxies.ConcreteJavaProxy
org.jruby.java.proxies.MapJavaProxy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<IRubyObject>, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType
public class MapJavaProxy
- extends ConcreteJavaProxy
- Author:
- Yoko Harada
- See Also:
- Serialized Form
Fields inherited from class org.jruby.RubyBasicObject |
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F |
Method Summary |
IRubyObject |
assoc(ThreadContext context,
IRubyObject obj)
|
static RubyClass |
createMapJavaProxy(ThreadContext context)
|
IRubyObject |
default_proc()
rb_hash_default_proc |
IRubyObject |
default_value_get(ThreadContext context)
|
IRubyObject |
default_value_get(ThreadContext context,
IRubyObject arg)
|
IRubyObject |
default_value_set(IRubyObject defaultValue)
rb_hash_set_default |
IRubyObject |
delete_if(ThreadContext context,
Block block)
rb_hash_delete_if |
IRubyObject |
delete(ThreadContext context,
IRubyObject key,
Block block)
rb_hash_delete |
IRubyObject |
dup(ThreadContext context)
|
IRubyObject |
each_key(ThreadContext context,
Block block)
rb_hash_each_key |
IRubyObject |
each_pair(ThreadContext context,
Block block)
rb_hash_each_pair |
IRubyObject |
each_value(ThreadContext context,
Block block)
rb_hash_each_value |
IRubyObject |
each(ThreadContext context,
Block block)
rb_hash_each |
RubyBoolean |
empty_p()
rb_hash_empty_p |
IRubyObject |
fetch(ThreadContext context,
IRubyObject[] args,
Block block)
rb_hash_fetch |
IRubyObject |
flatten(ThreadContext context)
|
IRubyObject |
flatten(ThreadContext context,
IRubyObject level)
|
IRubyObject |
getCompareByIdentity_p(ThreadContext context)
|
IRubyObject |
getCompareByIdentity(ThreadContext context)
|
RubyBoolean |
has_key_p(IRubyObject key)
rb_hash_has_key_p |
RubyBoolean |
has_value_p(ThreadContext context,
IRubyObject expected)
rb_hash_has_value |
RubyFixnum |
hash()
rb_hash_hash |
RubyFixnum |
hash19()
|
IRubyObject |
index(ThreadContext context,
IRubyObject expected)
rb_hash_index |
IRubyObject |
index19(ThreadContext context,
IRubyObject expected)
|
RubyArray |
indices(ThreadContext context,
IRubyObject[] indices)
rb_hash_indexes |
RubyHash |
initialize_copy(ThreadContext context,
IRubyObject other)
rb_hash_initialize_copy |
RubyHash |
initialize_copy19(ThreadContext context,
IRubyObject other)
|
IRubyObject |
inspect(ThreadContext context)
rb_hash_inspect |
RubyHash |
invert(ThreadContext context)
rb_hash_invert |
IRubyObject |
keep_if(ThreadContext context,
Block block)
rb_hash_keep_if |
IRubyObject |
key(ThreadContext context,
IRubyObject expected)
rb_hash_key |
RubyArray |
keys()
rb_hash_keys |
RubyHash |
merge_bang(ThreadContext context,
IRubyObject other,
Block block)
rb_hash_merge_bang |
RubyHash |
merge_bang19(ThreadContext context,
IRubyObject other,
Block block)
|
RubyHash |
merge(ThreadContext context,
IRubyObject other,
Block block)
rb_hash_merge |
IRubyObject |
op_aref(ThreadContext context,
IRubyObject key)
rb_hash_aref |
IRubyObject |
op_aset(ThreadContext context,
IRubyObject key,
IRubyObject value)
rb_hash_aset |
IRubyObject |
op_aset19(ThreadContext context,
IRubyObject key,
IRubyObject value)
|
IRubyObject |
op_eql19(ThreadContext context,
IRubyObject other)
rb_hash_eql19 |
IRubyObject |
op_equal(ThreadContext context,
IRubyObject other)
rb_hash_equal |
IRubyObject |
rassoc(ThreadContext context,
IRubyObject obj)
|
RubyHash |
rb_clear()
rb_hash_clear |
RubyFixnum |
rb_size()
rb_hash_size |
RubyArray |
rb_values()
rb_hash_values |
IRubyObject |
rbClone(ThreadContext context)
|
RubyHash |
rehash()
rb_hash_rehash |
IRubyObject |
reject_bang(ThreadContext context,
Block block)
rb_hash_reject_bang |
IRubyObject |
reject(ThreadContext context,
Block block)
rb_hash_reject |
RubyHash |
replace(ThreadContext context,
IRubyObject other)
rb_hash_replace |
RubyHash |
replace19(ThreadContext context,
IRubyObject other)
|
IRubyObject |
select_bang(ThreadContext context,
Block block)
rb_hash_select_bang |
IRubyObject |
select(ThreadContext context,
Block block)
rb_hash_select |
IRubyObject |
select19(ThreadContext context,
Block block)
|
IRubyObject |
set_default_proc(IRubyObject proc)
rb_hash_set_default_proc |
IRubyObject |
shift(ThreadContext context)
rb_hash_shift |
IRubyObject |
sort(ThreadContext context,
Block block)
rb_hash_sort |
RubyArray |
to_a()
rb_hash_to_a |
RubyHash |
to_hash()
rb_hash_to_hash |
IRubyObject |
to_s(ThreadContext context)
rb_hash_to_s |
IRubyObject |
to_s19(ThreadContext context)
rb_hash_to_s19 |
RubyArray |
values_at(ThreadContext context,
IRubyObject[] args)
rb_hash_values_at |
Methods inherited from class org.jruby.java.proxies.JavaProxy |
createJavaProxy, dataGetStruct, dataWrapStruct, equal_p, field_accessor, field_reader, field_writer, getJavaClass, getObject, inherited, initialize_copy, inspectHashCode, java_method, java_method, java_send, java_send, java_send, java_send, marshal_dump, marshal_load, op_aref, setObject, singleton_class, toJava, unwrap |
Methods inherited from class org.jruby.RubyObject |
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, eqlInternal, equalInternal, equals, getNativeTypeIndex, hashCode, initialize, op_eqq, puts, specificEval, toString |
Methods inherited from class org.jruby.RubyBasicObject |
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkFrozen, checkStringType, checkStringType19, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStructChecked, display, dup, ensureInstanceVariablesSettable, eql_p, eql, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, frozen_p, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMetaClass, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id_deprecated, infectBy, initialize19, initialize19, initialize19, initialize19, initialize19, initObjectId, inspect, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method_missing19, method, method19, methods, methods, methods19, nil_p, op_cmp, op_equal_19, op_match, op_match19, op_not_equal, op_not_match, op_not, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, send19, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setTaint, setUntrusted, setVariable, singleton_method_added19, singleton_method_removed19, singleton_method_undefined19, singleton_methods, singleton_methods19, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_s, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnder |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MapJavaProxy
public MapJavaProxy(Ruby runtime,
RubyClass klazz)
createMapJavaProxy
public static RubyClass createMapJavaProxy(ThreadContext context)
default_value_get
public IRubyObject default_value_get(ThreadContext context)
default_value_get
public IRubyObject default_value_get(ThreadContext context,
IRubyObject arg)
default_value_set
public IRubyObject default_value_set(IRubyObject defaultValue)
- rb_hash_set_default
default_proc
public IRubyObject default_proc()
- rb_hash_default_proc
set_default_proc
public IRubyObject set_default_proc(IRubyObject proc)
- rb_hash_set_default_proc
inspect
public IRubyObject inspect(ThreadContext context)
- rb_hash_inspect
rb_size
public RubyFixnum rb_size()
- rb_hash_size
empty_p
public RubyBoolean empty_p()
- rb_hash_empty_p
to_a
public RubyArray to_a()
- rb_hash_to_a
- Overrides:
to_a
in class RubyBasicObject
to_s
public IRubyObject to_s(ThreadContext context)
- rb_hash_to_s
to_s19
public IRubyObject to_s19(ThreadContext context)
- rb_hash_to_s19
rehash
public RubyHash rehash()
- rb_hash_rehash
to_hash
public RubyHash to_hash()
- rb_hash_to_hash
op_aset
public IRubyObject op_aset(ThreadContext context,
IRubyObject key,
IRubyObject value)
- rb_hash_aset
op_aset19
public IRubyObject op_aset19(ThreadContext context,
IRubyObject key,
IRubyObject value)
op_equal
public IRubyObject op_equal(ThreadContext context,
IRubyObject other)
- rb_hash_equal
- Specified by:
op_equal
in interface IRubyObject
- Overrides:
op_equal
in class RubyBasicObject
op_eql19
public IRubyObject op_eql19(ThreadContext context,
IRubyObject other)
- rb_hash_eql19
op_aref
public IRubyObject op_aref(ThreadContext context,
IRubyObject key)
- rb_hash_aref
hash
public RubyFixnum hash()
- rb_hash_hash
- Overrides:
hash
in class RubyBasicObject
hash19
public RubyFixnum hash19()
fetch
public IRubyObject fetch(ThreadContext context,
IRubyObject[] args,
Block block)
- rb_hash_fetch
has_key_p
public RubyBoolean has_key_p(IRubyObject key)
- rb_hash_has_key_p
has_value_p
public RubyBoolean has_value_p(ThreadContext context,
IRubyObject expected)
- rb_hash_has_value
each
public IRubyObject each(ThreadContext context,
Block block)
- rb_hash_each
each_pair
public IRubyObject each_pair(ThreadContext context,
Block block)
- rb_hash_each_pair
each_value
public IRubyObject each_value(ThreadContext context,
Block block)
- rb_hash_each_value
each_key
public IRubyObject each_key(ThreadContext context,
Block block)
- rb_hash_each_key
select_bang
public IRubyObject select_bang(ThreadContext context,
Block block)
- rb_hash_select_bang
keep_if
public IRubyObject keep_if(ThreadContext context,
Block block)
- rb_hash_keep_if
sort
public IRubyObject sort(ThreadContext context,
Block block)
- rb_hash_sort
index
public IRubyObject index(ThreadContext context,
IRubyObject expected)
- rb_hash_index
index19
public IRubyObject index19(ThreadContext context,
IRubyObject expected)
key
public IRubyObject key(ThreadContext context,
IRubyObject expected)
- rb_hash_key
indices
public RubyArray indices(ThreadContext context,
IRubyObject[] indices)
- rb_hash_indexes
keys
public RubyArray keys()
- rb_hash_keys
rb_values
public RubyArray rb_values()
- rb_hash_values
shift
public IRubyObject shift(ThreadContext context)
- rb_hash_shift
delete
public IRubyObject delete(ThreadContext context,
IRubyObject key,
Block block)
- rb_hash_delete
select
public IRubyObject select(ThreadContext context,
Block block)
- rb_hash_select
select19
public IRubyObject select19(ThreadContext context,
Block block)
delete_if
public IRubyObject delete_if(ThreadContext context,
Block block)
- rb_hash_delete_if
reject
public IRubyObject reject(ThreadContext context,
Block block)
- rb_hash_reject
reject_bang
public IRubyObject reject_bang(ThreadContext context,
Block block)
- rb_hash_reject_bang
rb_clear
public RubyHash rb_clear()
- rb_hash_clear
invert
public RubyHash invert(ThreadContext context)
- rb_hash_invert
merge_bang
public RubyHash merge_bang(ThreadContext context,
IRubyObject other,
Block block)
- rb_hash_merge_bang
merge_bang19
public RubyHash merge_bang19(ThreadContext context,
IRubyObject other,
Block block)
merge
public RubyHash merge(ThreadContext context,
IRubyObject other,
Block block)
- rb_hash_merge
initialize_copy
public RubyHash initialize_copy(ThreadContext context,
IRubyObject other)
- rb_hash_initialize_copy
initialize_copy19
public RubyHash initialize_copy19(ThreadContext context,
IRubyObject other)
replace
public RubyHash replace(ThreadContext context,
IRubyObject other)
- rb_hash_replace
replace19
public RubyHash replace19(ThreadContext context,
IRubyObject other)
values_at
public RubyArray values_at(ThreadContext context,
IRubyObject[] args)
- rb_hash_values_at
assoc
public IRubyObject assoc(ThreadContext context,
IRubyObject obj)
rassoc
public IRubyObject rassoc(ThreadContext context,
IRubyObject obj)
flatten
public IRubyObject flatten(ThreadContext context)
flatten
public IRubyObject flatten(ThreadContext context,
IRubyObject level)
getCompareByIdentity
public IRubyObject getCompareByIdentity(ThreadContext context)
getCompareByIdentity_p
public IRubyObject getCompareByIdentity_p(ThreadContext context)
dup
public IRubyObject dup(ThreadContext context)
rbClone
public IRubyObject rbClone(ThreadContext context)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.