| Modifier and Type | Field and Description |
|---|---|
| protected volatile boolean | |
| protected volatile Object | |
| protected volatile Class | |
| protected final String | |
| protected final IRubyObject | |
| protected volatile IRubyObject |
| Access | Constructor and Description |
|---|---|
| protected | AbstractVariable(IRubyObject receiver, String name, boolean fromRuby)
Constructor used when this variable is originaed from Java. |
| protected | AbstractVariable(IRubyObject
a receiver object that this variable/constant is originally in. When
the variable/constant is originated from Ruby, receiver may not be null. receiver, String name, boolean fromRuby, IRubyObject rubyObject)Constructor when the variable is originated from Ruby. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final ThreadContext | |
| public synchronized Object | getJavaObject()
Implements org. Returns a value of the variable this object holds in Java type. |
| public String | getName()
Implements org. Returns a name of the variable this object holds. |
| public IRubyObject | getReceiver()
Implements org. Returns the original receiver where this variable has been retrieved. |
| protected static RubyModule | |
| public IRubyObject | getRubyObject()
Implements org. Returns a value of the variable this object holds in a org.jruby.runtime.builtin.IRubyObject type. |
| pack-priv final Ruby | |
| pack-priv final RubyObject | |
| pack-priv static RubyObject | |
| public boolean | Returns: true if identical otherwise falseImplements org. Returns true if a given receiver is identical to the receiver this object has. |
| protected static boolean | |
| public void | setJavaObject(final Ruby
is used to convert a Java object to Ruby object. runtime, Object is a variable value to be set. javaObject)Implements org. Sets a Java object as a value of this object. |
| public void | setRubyObject(final IRubyObject
is a variable value to be set. rubyObject)Implements org. Sets a org.jruby.runtime.builtin.IRubyObject type, Ruby object as a value of this object. |
| protected synchronized void | |
| protected synchronized void |
| fromRuby | back to summary |
|---|---|
| protected volatile boolean fromRuby | |
| javaObject | back to summary |
|---|---|
| protected volatile Object javaObject | |
| javaType | back to summary |
|---|---|
| protected volatile Class<T> javaType | |
| name | back to summary |
|---|---|
| protected final String name | |
| receiver | back to summary |
|---|---|
| protected final IRubyObject receiver | |
| rubyObject | back to summary |
|---|---|
| protected volatile IRubyObject rubyObject | |
| AbstractVariable | back to summary |
|---|---|
| protected AbstractVariable(IRubyObject receiver, String name, boolean fromRuby) Constructor used when this variable is originaed from Java. | |
| AbstractVariable | back to summary |
|---|---|
| protected AbstractVariable(IRubyObject receiver, String name, boolean fromRuby, IRubyObject rubyObject) Constructor when the variable is originated from Ruby.
| |
| getCurrentContext | back to summary |
|---|---|
| pack-priv final ThreadContext getCurrentContext() | |
| getJavaObject | back to summary |
|---|---|
| public synchronized Object getJavaObject() Implements org. Doc from org. Returns a value of the variable this object holds in Java type.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Returns a name of the variable this object holds. The name follows Ruby's naming rule.
| |
| getReceiver | back to summary |
|---|---|
| public IRubyObject getReceiver() Implements org. Doc from org. Returns the original receiver where this variable has been retrieved.
| |
| getRubyClass | back to summary |
|---|---|
| protected static RubyModule getRubyClass(final Ruby runtime) | |
| getRubyObject | back to summary |
|---|---|
| public IRubyObject getRubyObject() Implements org. Doc from org. Returns a value of the variable this object holds in a org.jruby.runtime.builtin.IRubyObject type.
| |
| getRuntime | back to summary |
|---|---|
| pack-priv final Ruby getRuntime() | |
| getTopSelf | back to summary |
|---|---|
| pack-priv final RubyObject getTopSelf() | |
| getTopSelf | back to summary |
|---|---|
| pack-priv static RubyObject getTopSelf(final IRubyObject receiver) | |
| isReceiverIdentical | back to summary |
|---|---|
| public boolean isReceiverIdentical(final RubyObject receiver) Implements org. Returns true if a given receiver is identical to the receiver this object has.
| |
| isValidName | back to summary |
|---|---|
| protected static boolean isValidName(String pattern, Object name) | |
| setJavaObject | back to summary |
|---|---|
| public void setJavaObject(final Ruby runtime, Object javaObject) Implements org. Doc from org. Sets a Java object as a value of this object. At the same time, an equivalent Ruby object is set automatically. | |
| setRubyObject | back to summary |
|---|---|
| public void setRubyObject(final IRubyObject rubyObject) Implements org. Doc from org. Sets a org.jruby.runtime.builtin.IRubyObject type, Ruby object as a value of this object. At the same time, an equivalent Java object is set automatically.
| |
| updateByJavaObject | back to summary |
|---|---|
| protected synchronized void updateByJavaObject(final Ruby runtime, Object... values) | |
| updateRubyObject | back to summary |
|---|---|
| protected synchronized void updateRubyObject(final IRubyObject rubyObject) | |