BiVariableMap after a variable is set to the map. Users can set variables
in Java program explicitly through put() methods in ScriptingContainer
and BiVariableMap or equivalents. However, variables in Ruby scripts are
set in the map implicitly. When variables and constants
are used in the script, those are automatically saved in the map converting to this type.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | BiVariable.
Defines a type correspond to Ruby's variables and constant types. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: a value in Java type.Returns a value of the variable this object holds in Java type. |
| public String | |
| public IRubyObject | Returns: an original receiver.Returns the original receiver where this variable has been retrieved. |
| public IRubyObject | Returns: a value in IRubyObject type.Returns a value of the variable this object holds in a org.jruby.runtime.builtin.IRubyObject type. |
| public BiVariable. | Returns: a type that corresponds to Ruby's variables and constant types.Returns one of the Ruby's variables or constant types defined by Type. |
| public void | |
| public boolean | Returns: true if identical otherwise false.Returns true if a given receiver is identical to the receiver this object has. |
| public void | |
| public void | setJavaObject(Ruby
is used to convert a Java object to Ruby object. runtime, Object is a variable value to be set. javaObject)Sets a Java object as a value of this object. |
| public void | setRubyObject(IRubyObject
is a variable value to be set. rubyObject)Sets a org.jruby.runtime.builtin.IRubyObject type, Ruby object as a value of this object. |
| getJavaObject | back to summary |
|---|---|
| public Object getJavaObject() Returns a value of the variable this object holds in Java type.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns a name of the variable this object holds. The name follows Ruby's naming rule.
| |
| getReceiver | back to summary |
|---|---|
| public IRubyObject getReceiver() Returns the original receiver where this variable has been retrieved.
| |
| getRubyObject | back to summary |
|---|---|
| public IRubyObject getRubyObject() Returns a value of the variable this object holds in a org.jruby.runtime.builtin.IRubyObject type.
| |
| getType | back to summary |
|---|---|
| public BiVariable. Returns one of the Ruby's variables or constant types defined by Type.
| |
| inject | back to summary |
|---|---|
| public void inject() Injects a variable value to a parsed Ruby script. This method is invoked during EvalUnit#run() is executed. Users don't use this method. | |
| isReceiverIdentical | back to summary |
|---|---|
| public boolean isReceiverIdentical(RubyObject receiver) Returns true if a given receiver is identical to the receiver this object has.
| |
| remove | back to summary |
|---|---|
| public void remove() Attempts to remove this variable/constant from top self or receiver. | |
| setJavaObject | back to summary |
|---|---|
| public void setJavaObject(Ruby runtime, Object javaObject) 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(IRubyObject rubyObject) 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BiVariable. | |
| public static final BiVariable. | |
| public static final BiVariable. | |
| public static final BiVariable. | |
| public static final BiVariable. | |
| public static final BiVariable. | |
| public static final BiVariable. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BiVariable. | |
| public static BiVariable. |
| Argv | back to summary |
|---|---|
| public static final BiVariable. | |
| ClassVariable | back to summary |
|---|---|
| public static final BiVariable. | |
| Constant | back to summary |
|---|---|
| public static final BiVariable. | |
| GlobalVariable | back to summary |
|---|---|
| public static final BiVariable. | |
| InstanceVariable | back to summary |
|---|---|
| public static final BiVariable. | |
| LocalGlobalVariable | back to summary |
|---|---|
| public static final BiVariable. | |
| LocalVariable | back to summary |
|---|---|
| public static final BiVariable. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static BiVariable. | |
| values | back to summary |
|---|---|
| public static BiVariable. | |