|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object koala.dynamicjava.interpreter.TreeInterpreter koala.dynamicjava.interpreter.WeakInterpreter org.norther.tammi.core.scripter.djava.DJavaInterpreter
public class DJavaInterpreter
A DJava interpreter.
Field Summary |
---|
Fields inherited from class koala.dynamicjava.interpreter.TreeInterpreter |
---|
accessible, checkVisitorContext, classLoader, constructorParameters, evalVisitorContext, libraryFinder, methods, nameVisitorContext, nClass, parserFactory |
Fields inherited from interface org.norther.tammi.core.scripter.lang.Interpreter |
---|
JAVA_LANGUAGE |
Constructor Summary | |
---|---|
DJavaInterpreter(koala.dynamicjava.parser.wrapper.ParserFactory pf)
Creates a new interpreter. |
|
DJavaInterpreter(koala.dynamicjava.parser.wrapper.ParserFactory pf,
ClassLoader cl)
Creates a new interpreter with a class loader. |
Method Summary | |
---|---|
Object |
interpret(File file)
Interprets a file. |
Object |
interpret(String s,
String fname)
Interprets a string. |
Object |
interpret(URL url)
Interprets a URL. |
Methods inherited from class koala.dynamicjava.interpreter.WeakInterpreter |
---|
addClassPath, addClassURL, buildStatementList, defineClass, defineVariable, defineVariable, defineVariable, defineVariable, defineVariable, defineVariable, defineVariable, defineVariable, defineVariable, finalize, getClassLoader, getClassNames, getVariable, getVariableClass, getVariableNames, interpret, interpret, interpret, interpretArguments, interpretLocalArguments, invokeLocalMethod, invokeMethod, isDefined, parseStatementList, registerConstructorArguments, registerMethod, reset, setAccessible, setVariable |
Methods inherited from class koala.dynamicjava.interpreter.TreeInterpreter |
---|
addLibraryPath, addLibrarySuffix, defineVariable, getAccessible, getExceptionClass, getLibraryFinder, getParserFactory, interpret, interpretArguments, interpretMethod, loadClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.norther.tammi.core.scripter.lang.Interpreter |
---|
addClassPath, addClassURL, defineClass, defineVariable, defineVariable, getClassLoader, getClassNames, getVariable, getVariableClass, getVariableNames, interpret, interpret, isDefined, loadClass, reset, setVariable |
Constructor Detail |
---|
public DJavaInterpreter(koala.dynamicjava.parser.wrapper.ParserFactory pf)
pf
- the parser factory.public DJavaInterpreter(koala.dynamicjava.parser.wrapper.ParserFactory pf, ClassLoader cl)
pf
- the parser factory.cl
- the auxiliary class loader used to load external classes.Method Detail |
---|
public Object interpret(String s, String fname)
Interpreter
s
- the string from which the statements are read.fname
- the name of the parsed string.
public Object interpret(File file) throws IOException
Interpreter
file
- the file to interpret.
IOException
- on I/O errors.public Object interpret(URL url) throws IOException
Interpreter
url
- the url to interpret.
IOException
- on I/O errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |