| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv | Argv(RubyObject
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 the constant name name, IRubyObject Ruby constant object irubyObject)A constructor used when ARGV is retrieved from Ruby. |
| Modifier and Type | Method and Description |
|---|---|
| public static BiVariable | Returns: the instance of ConstantReceiver object returned when a script is evaluated. receiver, String a variable name name, Object... Java object that should be assigned to. javaObject)Returns an instance of this class. |
| public synchronized Object | getJavaObject()
Overrides org. Implements org. Returns a value of the variable this object holds in Java type. |
| public BiVariable. | Returns: this enum type, BiVariable.Type.InstanceVariable.Implements org. Returns enum type of this variable defined in |
| public synchronized void | inject()
Implements org. Injects ARGV values to a parsed Ruby script. |
| public static boolean | Returns: true if the given name is ARGV.is a name to be checked. name)Returns true if the given name is ARGV. |
| public synchronized void | remove()
Implements org. Removes this object from |
| public static void | retrieve(final RubyObject
receiver object returned when a script is evaluated. receiver, final BiVariableMap map to save retrieved constants. vars)Retrieves ARGV from Ruby after the evaluation or method invocation. |
| public static void | retrieveByKey(RubyObject
receiver object returned when a script is evaluated. receiver, BiVariableMap map to save retrieved instance variables. vars, String instace varible name key)Retrieves ARGV by key from Ruby runtime after the evaluation. |
| private static void | |
| protected synchronized void | updateRubyObject(final IRubyObject rubyObject)
Overrides org.
|
| VALID_NAME | back to summary |
|---|---|
| private static final String VALID_NAME | |
| Argv | back to summary |
|---|---|
| private Argv(RubyObject receiver, String name, Object... javaObjects) | |
| Argv | back to summary |
|---|---|
| pack-priv Argv(RubyObject receiver, String name, IRubyObject irubyObject) A constructor used when ARGV is retrieved from Ruby.
| |
| getInstance | back to summary |
|---|---|
| public static BiVariable getInstance(RubyObject receiver, String name, Object... javaObject) Returns an instance of this class. This factory method is used when an ARGV
is put in
| |
| getJavaObject | back to summary |
|---|---|
| public synchronized Object getJavaObject() Overrides org. Implements org. Doc from org. Returns a value of the variable this object holds in Java type.
| |
| getType | back to summary |
|---|---|
| public BiVariable. Implements org. Returns enum type of this variable defined in
| |
| inject | back to summary |
|---|---|
| public synchronized void inject() Implements org. Injects ARGV values to a parsed Ruby script. This method is invoked during EvalUnit#run() is executed.
| |
| isValidName | back to summary |
|---|---|
| public static boolean isValidName(Object name) Returns true if the given name is ARGV. Unless returns false.
| |
| remove | back to summary |
|---|---|
| public synchronized void remove() Implements org. Removes this object from
| |
| retrieve | back to summary |
|---|---|
| public static void retrieve(final RubyObject receiver, final BiVariableMap vars) Retrieves ARGV from Ruby after the evaluation or method invocation.
| |
| retrieveByKey | back to summary |
|---|---|
| public static void retrieveByKey(RubyObject receiver, BiVariableMap vars, String key) Retrieves ARGV by key from Ruby runtime after the evaluation. This method is used when eager retrieval is off.
| |
| updateARGV | back to summary |
|---|---|
| private static void updateARGV(ThreadContext context, IRubyObject receiver, final BiVariableMap vars) | |
| updateRubyObject | back to summary |
|---|---|
| protected synchronized void updateRubyObject(final IRubyObject rubyObject) Overrides org. | |