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

Field Summary
 boolean isError
           
 boolean notStatic
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
mn8InterpretThread(StringConcept signature, String concept, SeriesConcept arguments)
           
mn8InterpretThread(String scriptURL, String concept, SeriesConcept arguments)
           
 
Method Summary
 String getError()
           
 Concept getResult()
           
 Concept interpretAST(antlr.collections.AST tree, mn8Concept on, mn8ScriptMethod method, ScopeStack scopeStack)
          Interprets an portion of code represented by it's AST tree.
 boolean isError()
           
 boolean isRunning()
           
 boolean isStatic()
           
 void run()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

notStatic

public boolean notStatic

isError

public boolean isError
Constructor Detail

mn8InterpretThread

public mn8InterpretThread(String scriptURL,
                          String concept,
                          SeriesConcept arguments)

mn8InterpretThread

public mn8InterpretThread(StringConcept signature,
                          String concept,
                          SeriesConcept arguments)
Method Detail

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."