[Groovy] Class Interpreter
- org.apache.groovy.groovysh.Interpreter
- All Implemented Interfaces and Traits:
- Evaluator
class Interpreter extends Object implements Evaluator
Helper to interpret a source buffer.
Properties Summary
Type | Name and description |
---|---|
static String |
SCRIPT_FILENAME |
Constructor Summary
Constructor and description |
---|
Interpreter
(ClassLoader classLoader, Binding binding) |
Interpreter
(ClassLoader classLoader, Binding binding, CompilerConfiguration configuration) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
Object |
evaluate(Collection<String> buffer) | |
GroovyClassLoader |
getClassLoader() | |
Binding |
getContext() | |
GroovyShell |
getShell() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail
static final String SCRIPT_FILENAME
Constructor Detail
Interpreter(ClassLoader classLoader, Binding binding)
Interpreter(ClassLoader classLoader, Binding binding, CompilerConfiguration configuration)
Method Detail
@Override Object evaluate(Collection<String> buffer)
GroovyClassLoader getClassLoader()
Binding getContext()
GroovyShell getShell()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/apache/groovy/groovysh/Interpreter.html