/** * Returns a local variable behavior * * @return a local variable behavior */ public LocalVariableBehavior getLocalVariableBehavior() { return provider.getLocalVariableBehavior(); }
/** * Returns a local variable behavior * * @return a local variable behavior */ public LocalVariableBehavior getLocalVariableBehavior() { return provider.getLocalVariableBehavior(); }
/** * Returns a local variable behavior * * @return a local variable behavior */ public LocalVariableBehavior getLocalVariableBehavior() { return provider.getLocalVariableBehavior(); }
/** * Returns a local variable behavior * * @return a local variable behavior */ public LocalVariableBehavior getLocalVariableBehavior() { return provider.getLocalVariableBehavior(); }
void terminate() { VariableInterceptor.terminateGlobalVariables(provider.getLocalVariableBehavior(), variables, provider.getRuntime()); VariableInterceptor.terminateLocalVariables(provider.getLocalVariableBehavior(), varNames, variables); }
void terminate() { VariableInterceptor.terminateGlobalVariables(provider.getLocalVariableBehavior(), variables, provider.getRuntime()); VariableInterceptor.terminateLocalVariables(provider.getLocalVariableBehavior(), varNames, variables); }
private static boolean shouldLVarBeDeleted(ScriptingContainer container, String key) { LocalVariableBehavior behavior = container.getProvider().getLocalVariableBehavior(); if (behavior != LocalVariableBehavior.TRANSIENT) return false; return TransientLocalVariable.isValidName(key); } }
private static boolean shouldLVarBeDeleted(ScriptingContainer container, String key) { LocalVariableBehavior behavior = container.getProvider().getLocalVariableBehavior(); if (behavior != LocalVariableBehavior.TRANSIENT) return false; return TransientLocalVariable.isValidName(key); } }
void retrieve(IRubyObject receiver) { RubyObject robj = getReceiverObject(receiver); VariableInterceptor.retrieve(provider.getLocalVariableBehavior(), this, robj); }
private static boolean shouldLVarBeDeleted(ScriptingContainer container, String key) { LocalVariableBehavior behavior = container.getProvider().getLocalVariableBehavior(); if (behavior != LocalVariableBehavior.TRANSIENT) return false; return TransientLocalVariable.isValidName(key); } }
private static boolean shouldLVarBeDeleted(ScriptingContainer container, String key) { LocalVariableBehavior behavior = container.getProvider().getLocalVariableBehavior(); if (behavior != LocalVariableBehavior.TRANSIENT) return false; return TransientLocalVariable.isValidName(key); } }
static boolean isRubyVariable(ScriptingContainer container, String name) { return VariableInterceptor.isKindOfRubyVariable(container.getProvider().getLocalVariableBehavior(), name); }
void retrieve(IRubyObject receiver) { RubyObject robj = getReceiverObject(receiver); VariableInterceptor.retrieve(provider.getLocalVariableBehavior(), this, robj); }
static boolean isRubyVariable(ScriptingContainer container, String name) { return VariableInterceptor.isKindOfRubyVariable(container.getProvider().getLocalVariableBehavior(), name); }
static boolean isRubyVariable(ScriptingContainer container, String name) { return VariableInterceptor.isKindOfRubyVariable(container.getProvider().getLocalVariableBehavior(), name); }
static boolean isRubyVariable(ScriptingContainer container, String name) { return VariableInterceptor.isKindOfRubyVariable(container.getProvider().getLocalVariableBehavior(), name); }
/** * Returns the value in simple Java object to which the specified receiver * and key is mapped, or {@code null} if this map contains no mapping * for the key in a given receiver. * * @param receiver is a receiver object to get the value from * @param key is the key whose associated value is to be returned * @return the value in simple Java object to which the specified key is mapped, or * {@code null} if this map contains no mapping for the key */ public V get(Object receiver, Object key) { checkKey(key); RubyObject robj = getReceiverObject(receiver); // attemps to retrieve global variables if (lazy) VariableInterceptor.tryLazyRetrieval(provider.getLocalVariableBehavior(), this, robj, key); BiVariable var = getVariable(robj, (String)key); if (var == null) return null; else return (V) var.getJavaObject(); }
/** * Returns the value in simple Java object to which the specified receiver * and key is mapped, or {@code null} if this map contains no mapping * for the key in a given receiver. * * @param receiver is a receiver object to get the value from * @param key is the key whose associated value is to be returned * @return the value in simple Java object to which the specified key is mapped, or * {@code null} if this map contains no mapping for the key */ public V get(Object receiver, Object key) { checkKey(key); RubyObject robj = getReceiverObject(receiver); // attemps to retrieve global variables if (lazy) VariableInterceptor.tryLazyRetrieval(provider.getLocalVariableBehavior(), this, robj, key); BiVariable var = getVariable(robj, (String)key); if (var == null) return null; else return (V) var.getJavaObject(); }
/** * Returns the value in simple Java object to which the specified receiver * and key is mapped, or {@code null} if this map contains no mapping * for the key in a given receiver. * * @param receiver is a receiver object to get the value from * @param key is the key whose associated value is to be returned * @return the value in simple Java object to which the specified key is mapped, or * {@code null} if this map contains no mapping for the key */ public Object get(Object receiver, Object key) { checkKey(key); final RubyObject robj = getReceiverObject(receiver); // attemps to retrieve global variables if ( isLazy() ) { VariableInterceptor.tryLazyRetrieval(provider.getLocalVariableBehavior(), this, robj, key); } BiVariable var = getVariable(robj, (String) key); return var == null ? null : var.getJavaObject(); }
/** * Returns the value in simple Java object to which the specified receiver * and key is mapped, or {@code null} if this map contains no mapping * for the key in a given receiver. * * @param receiver is a receiver object to get the value from * @param key is the key whose associated value is to be returned * @return the value in simple Java object to which the specified key is mapped, or * {@code null} if this map contains no mapping for the key */ public Object get(Object receiver, Object key) { checkKey(key); final RubyObject robj = getReceiverObject(receiver); // attemps to retrieve global variables if ( isLazy() ) { VariableInterceptor.tryLazyRetrieval(provider.getLocalVariableBehavior(), this, robj, key); } BiVariable var = getVariable(robj, (String) key); return var == null ? null : var.getJavaObject(); }