| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| private | ClassVariable(RubyObject
Receiver object returned when a script is evaluated. receiver, String name, Object... javaObjects)Constructor when the variable is originated from Java |
| pack-priv | ClassVariable(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 class variable name name, IRubyObject Ruby class variable object irubyObject)A constructor used when this variable is retrieved from Ruby. |
| Modifier and Type | Method and Description |
|---|---|
| public static BiVariable | Returns: the instance of ClassVariableReceiver 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 BiVariable. | Returns: this enum type, BiVariable.Type.ClassVariable.Implements org. Returns enum type of this variable defined in |
| public void | inject()
Implements org. Injects a class variable value to a parsed Ruby script. |
| public static boolean | Returns: true if the given name is of a Ruby class variable.is a name to be checked. name)Returns true if the given name is a decent Ruby class variable. |
| public void | remove()
Implements org. Attempts to remove this variable from top self or receiver. |
| public static void | retrieve(final RubyObject
receiver object returned when a script is evaluated. receiver, final BiVariableMap map to save retrieved class variables. vars)Retrieves class variables from Ruby after the evaluation. |
| public static void | retrieveByKey(final RubyObject
receiver object returned when a script is evaluated. receiver, final BiVariableMap map to save retrieved instance variables. vars, final String instace varible name name)Retrieves a class variable by key from Ruby runtime after the evaluation. |
| private static void |
| VALID_NAME | back to summary |
|---|---|
| private static final String VALID_NAME | |
| ClassVariable | back to summary |
|---|---|
| private ClassVariable(RubyObject receiver, String name, Object... javaObjects) Constructor when the variable is originated from Java
| |
| ClassVariable | back to summary |
|---|---|
| pack-priv ClassVariable(RubyObject receiver, String name, IRubyObject irubyObject) A constructor used when this variable 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 a class
variables is put in
| |
| getType | back to summary |
|---|---|
| public BiVariable. Implements org. Returns enum type of this variable defined in
| |
| inject | back to summary |
|---|---|
| public void inject() Implements org. Injects a class variable value 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 a decent Ruby class variable. Unless returns false.
| |
| remove | back to summary |
|---|---|
| public void remove() Implements org. Attempts to remove this variable from top self or receiver.
| |
| retrieve | back to summary |
|---|---|
| public static void retrieve(final RubyObject receiver, final BiVariableMap vars) Retrieves class variables from Ruby after the evaluation.
| |
| retrieveByKey | back to summary |
|---|---|
| public static void retrieveByKey(final RubyObject receiver, final BiVariableMap vars, final String name) Retrieves a class variable by key from Ruby runtime after the evaluation. This method is used when eager retrieval is off.
| |
| updateClassVar | back to summary |
|---|---|
| private static void updateClassVar(ThreadContext context, final RubyObject receiver, final BiVariableMap vars) | |