| Package | Description |
|---|---|
| org.jruby.embed | |
| org.jruby.embed.internal | |
| org.jruby.embed.osgi |
Extends the jruby.embed APIs.
|
| org.jruby.embed.util | |
| org.jruby.embed.variable |
| Modifier and Type | Method and Description |
|---|---|
static LocalVariableBehavior |
LocalVariableBehavior.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocalVariableBehavior[] |
LocalVariableBehavior.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
IsolatedScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior) |
IsolatedScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior,
boolean lazy) |
IsolatedScriptingContainer(LocalVariableBehavior behavior) |
ScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior)
Constructs a ScriptingContainer with a specified local context type and
variable behavior.
|
ScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior,
boolean lazy)
Constructs a ScriptingContainer with a specified local context scope, local variable behavior and laziness.
|
ScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior,
boolean lazy,
boolean wrapExceptions) |
ScriptingContainer(LocalVariableBehavior behavior)
Constructs a ScriptingContainer with a specified local variable behavior.
|
| Modifier and Type | Field and Description |
|---|---|
protected LocalVariableBehavior |
AbstractLocalContextProvider.behavior |
| Modifier and Type | Method and Description |
|---|---|
LocalVariableBehavior |
AbstractLocalContextProvider.getLocalVariableBehavior() |
LocalVariableBehavior |
LocalContext.getLocalVariableBehavior() |
LocalVariableBehavior |
LocalContextProvider.getLocalVariableBehavior()
Returns a local variable behavior associated to the scope.
|
LocalVariableBehavior |
BiVariableMap.getLocalVariableBehavior()
Returns a local variable behavior
|
static LocalVariableBehavior |
SingletonLocalContextProvider.getLocalVariableBehaviorOrNull()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static LocalContext |
SingletonLocalContextProvider.getLocalContextInstance(RubyInstanceConfig config,
LocalVariableBehavior behavior,
boolean lazy)
Deprecated.
|
static SingletonLocalContextProvider |
SingletonLocalContextProvider.getProvider(LocalVariableBehavior behavior,
boolean lazy) |
| Constructor and Description |
|---|
AbstractLocalContextProvider(LocalVariableBehavior behavior) |
AbstractLocalContextProvider(RubyInstanceConfig config,
LocalVariableBehavior behavior) |
ConcurrentLocalContextProvider(LocalVariableBehavior behavior) |
ConcurrentLocalContextProvider(LocalVariableBehavior behavior,
boolean lazy) |
LocalContext(RubyInstanceConfig config,
LocalVariableBehavior behavior) |
LocalContext(RubyInstanceConfig config,
LocalVariableBehavior behavior,
boolean lazy) |
SingleThreadLocalContextProvider(LocalVariableBehavior behavior) |
SingleThreadLocalContextProvider(LocalVariableBehavior behavior,
boolean lazy) |
SingletonLocalContextProvider(LocalVariableBehavior behavior) |
SingletonLocalContextProvider(LocalVariableBehavior behavior,
boolean lazy) |
ThreadSafeLocalContextProvider(LocalVariableBehavior behavior) |
ThreadSafeLocalContextProvider(LocalVariableBehavior behavior,
boolean lazy) |
| Constructor and Description |
|---|
OSGiIsolatedScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior) |
OSGiIsolatedScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior,
boolean lazy) |
OSGiIsolatedScriptingContainer(LocalVariableBehavior behavior) |
OSGiScriptingContainer(org.osgi.framework.Bundle creator,
LocalContextScope scope,
LocalVariableBehavior behavior)
A scripting container where the classloader can find classes in
the osgi creator bundle and where the jruby home is set to point to
the one in the jruby's bundle home folder.
|
| Modifier and Type | Method and Description |
|---|---|
static LocalVariableBehavior |
SystemPropertyCatcher.getBehavior(LocalVariableBehavior defaultBehavior)
Gets a local variable behavior from System property.
|
| Modifier and Type | Method and Description |
|---|---|
static LocalVariableBehavior |
SystemPropertyCatcher.getBehavior(LocalVariableBehavior defaultBehavior)
Gets a local variable behavior from System property.
|
| Modifier and Type | Method and Description |
|---|---|
static BiVariable |
VariableInterceptor.getVariableInstance(LocalVariableBehavior behavior,
RubyObject receiver,
java.lang.String name,
java.lang.Object... value)
Returns an appropriate type of a variable instance to the specified local
variable behavior.
|
static boolean |
VariableInterceptor.isKindOfRubyVariable(LocalVariableBehavior behavior,
java.lang.String name)
Checks the given name is whether a legal Ruby variable/constant name or not.
|
static void |
VariableInterceptor.retrieve(LocalVariableBehavior behavior,
BiVariableMap map,
RubyObject receiver)
Retrieves variable/constant names and values after the evaluation or method
invocation.
|
static void |
VariableInterceptor.terminateGlobalVariables(LocalVariableBehavior behavior,
java.util.Collection<BiVariable> variables,
Ruby runtime)
Clears global variable values from Ruby runtime to behave the same as
JSR 223 reference implementation.
|
static void |
VariableInterceptor.terminateLocalVariables(LocalVariableBehavior behavior,
java.util.List<java.lang.String> varNames,
java.util.List<BiVariable> variables)
Clears local variables form the variable map so that old local variable
name-value pairs are not to be used in successive evaluations.
|
static void |
VariableInterceptor.tryLazyRetrieval(LocalVariableBehavior behavior,
BiVariableMap map,
IRubyObject receiver,
java.lang.Object key)
Retrieves specified variable/constant name and value after the evaluation
or method invocation only when it is requested.
|
Copyright © 2001-2023 JRuby. All Rights Reserved.