Package org.webharvest.runtime
Interface DynamicScopeContext
-
- All Superinterfaces:
Iterable<KeyValuePair<Variable>>
- All Known Implementing Classes:
ScraperContext
,ScraperContext10
public interface DynamicScopeContext extends Iterable<KeyValuePair<Variable>>
Created by IntelliJ IDEA. User: awajda Date: Sep 20, 2010 Time: 9:32:52 PM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addFunctionDef(FunctionDef funcDef)
Deprecated.boolean
containsVar(String name)
<R> R
executeWithinNewContext(Callable<R> callable)
String
getCharset()
Returns default configuration's charset.Config
getConfig()
FunctionDef
getFunctionDef(String name)
Deprecated.ScriptingLanguage
getScriptingLanguage()
Deprecated.Variable
getVar(String name)
Variable
replaceExistingVar(String name, Variable variable)
void
setCharset(String charset)
Sets default configuration's charset.void
setConfig(Config config)
Deprecated.void
setLocalVar(String name, Object value)
void
setLocalVar(String name, Variable value)
void
setLocalVar(Map<String,Object> map)
void
setScriptingLanguage(ScriptingLanguage language)
Deprecated.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
executeWithinNewContext
<R> R executeWithinNewContext(Callable<R> callable) throws InterruptedException
- Throws:
InterruptedException
-
containsVar
boolean containsVar(String name)
-
getFunctionDef
@Deprecated FunctionDef getFunctionDef(String name)
Deprecated.
-
addFunctionDef
@Deprecated void addFunctionDef(FunctionDef funcDef)
Deprecated.
-
getScriptingLanguage
@Deprecated ScriptingLanguage getScriptingLanguage()
Deprecated.
-
setScriptingLanguage
@Deprecated void setScriptingLanguage(ScriptingLanguage language)
Deprecated.
-
getCharset
String getCharset()
Returns default configuration's charset.- Returns:
- default configuration's charset.
-
setCharset
void setCharset(String charset)
Sets default configuration's charset.- Parameters:
charset
- new default configuration's charset
-
getConfig
Config getConfig()
-
setConfig
@Deprecated void setConfig(Config config)
Deprecated.
-
-