org.media.mn8
Class mn8InterpretThread
java.lang.Object
|
+--java.lang.Thread
|
+--org.media.mn8.mn8InterpretThread
- All Implemented Interfaces:
- Runnable
- public class mn8InterpretThread
- extends Thread
The main class which holds the threaded interpreter functions.
- Version:
- $Revision: 1.3 $ $Date: 2002/09/17 01:18:04 $
- Author:
- Remus Pereni
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
notStatic
public boolean notStatic
isError
public boolean isError
mn8InterpretThread
public mn8InterpretThread(String scriptURL,
String concept,
SeriesConcept arguments)
mn8InterpretThread
public mn8InterpretThread(StringConcept signature,
String concept,
SeriesConcept arguments)
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
isError
public boolean isError()
getError
public String getError()
isRunning
public boolean isRunning()
isStatic
public boolean isStatic()
getResult
public Concept getResult()
interpretAST
public final Concept interpretAST(antlr.collections.AST tree,
mn8Concept on,
mn8ScriptMethod method,
ScopeStack scopeStack)
- Interprets an portion of code represented by it's AST tree.
That piece of code can be the code of an method, or a portion
of it as currently inputed by the user in interactive mode.
- Parameters:
tree
- the portion of code as AST tree.on
- the concept on which to execute the code. Important
because it will use the ScopeStack of the concept.
- Returns:
- if there is a result, the resulting concept.
"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."