Package | Description |
---|---|
org.jruby.embed | |
org.jruby.embed.internal | |
org.jruby.embed.osgi |
JRuby Embed OSGi support
|
org.jruby.embed.util | |
org.jruby.embed.variable |
Modifier and Type | Method and Description |
---|---|
static LocalVariableBehavior |
LocalVariableBehavior.valueOf(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(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 |
LocalContextProvider.getLocalVariableBehavior()
Returns a local variable behavior associated to the scope.
|
LocalVariableBehavior |
LocalContext.getLocalVariableBehavior() |
LocalVariableBehavior |
BiVariableMap.getLocalVariableBehavior()
Returns a local variable behavior
|
LocalVariableBehavior |
AbstractLocalContextProvider.getLocalVariableBehavior() |
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) |
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,
String name,
Object... value)
Returns an appropriate type of a variable instance to the specified local
variable behavior.
|
static boolean |
VariableInterceptor.isKindOfRubyVariable(LocalVariableBehavior behavior,
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,
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,
List<String> varNames,
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,
Object key)
Retrieves specified variable/constant name and value after the evaluation
or method invocation only when it is requested.
|
Copyright © 2001-2016 JRuby. All Rights Reserved.