On this page
[Groovy] Class Interpreter
- org.apache.groovy.groovysh.Interpreter
- All Implemented Interfaces and Traits:
- org.apache.groovy.groovysh.Evaluator
class Interpreter
extends Object
implements org.apache.groovy.groovysh.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
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-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/apache/groovy/groovysh/Interpreter.html