org.media.mn8
Class mn8InterpretThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.media.mn8.mn8InterpretThread
All Implemented Interfaces:
java.lang.Runnable

public class mn8InterpretThread
extends java.lang.Thread

The main class which holds the threaded interpreter functions.

Version:
$Revision: 1.1 $ $Date: 2002/06/03 11:38:55 $
Author:
Remus Pereni

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
mn8InterpretThread(java.lang.String scriptURL, java.lang.String concept, SeriesConcept arguments)
           
 
Method Summary
 Concept interpretAST(antlr.collections.AST tree, mn8Concept on, mn8ScriptMethod method, ScopeStack scopeStack)
          Interprets an portion of code represented by it's AST tree.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

mn8InterpretThread

public mn8InterpretThread(java.lang.String scriptURL,
                          java.lang.String concept,
                          SeriesConcept arguments)
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

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 © 2001 Internet Multicasting Services & media.org. All Rights Reserved."